Hi,

thank you for your prompt reply. The patch works perfectly but after
the live image boot it does not work because of the live boot options
(they were set for live-boot, not casper). The way to go is with
LB_INITRAMFS so we don't break all the other live-build options like
[--initramfs auto|none|live-boot|casper] and the boot options
live-build sets at build time.

So I've edited your patched /usr/lib/live/build/config file version
and changed 3 things: "LB_MODE" for "LB_INITRAMFS", "debian)" for
"live-boot)" and "ubuntu)" for "casper)".

I've then clean up the build tree, ran "lb config" again and finally
"sudo lb build". At the binary stage zsync package could not be found
because it is in the "universe" repository. Atfer updating auto/config
with the option --archive-areas "main universe" the ubuntu live image
was finally built.

The image booted correctly and configured with casper.

Could you please update your patch with those 3 changes? It worked
perfectly and as expected in my tests. Thank you.

Cheers.

On Mon, Dec 8, 2014 at 5:21 AM, jnqnfe <jnq...@gmail.com> wrote:
> tags 772522 patch
>
> Patch attached, build against debian-next, please test it ;)
>
>
> On 08/12/2014 04:38, Rui Miguel P. Bernardo wrote:
>> Package: live-build
>> Version: 4.0.3-1
>> Severity: normal
>>
>> Dear Maintainer,
>>
>>     * What led up to the situation?
>>
>> I wanted to build a live image based on Ubuntu 14.10 utopic using
>> latest live-build.
>>
>>     * What exactly did you do (or not do) that was effective (or
>>       ineffective)?
>>
>> I have created a new build tree with "lb config", copied the files from
>> /usr/share/doc/live-build/examples/auto/* to auto/config and then I've
>> added the following to config/auto:
>>
>>         #!/bin/sh
>>
>>         set -e
>>
>>         lb config noauto \
>>         --mode ubuntu \
>>         -d utopic \
>>                 "${@}"
>>
>> I ran "sudo lb clean", recreated the configuration with "lb config" to
>> apply the new settings added in auto/config and finally a ran "sudo lb
>> build".
>>
>>     * What was the outcome of this action?
>>
>> The live image build failed with:
>>
>>         [2014-12-08 03:19:45] lb chroot_install-packages install
>>         P: Begin installing packages (install pass)...
>>         Reading package lists...
>>         Building dependency tree...
>>         Reading state information...
>>         E: Unable to locate package live-boot
>>         E: Unable to locate package live-config
>>         E: Unable to locate package live-config-systemd
>>         P: Begin unmounting filesystems...
>>         P: Saving caches...
>>         Reading package lists...
>>         Building dependency tree...
>>         Reading state information...
>>         user@galaxy:~/live$
>>
>>     * What outcome did you expect instead?
>>
>> I expected that a live image of ubuntu utopic was built.
>>
>> After digging what the problem was I've found that the following two
>> commits do not consider ubuntu mode, only debian and wheezy/jessie,
>> breaking the whole ubuntu mode of live-build:
>>
>>         
>> http://live.debian.net/gitweb/?p=live-build.git;a=commitdiff;h=d1eae015774db9e11ddb656ad8bc377c565f503a
>>
>>         
>> http://live.debian.net/gitweb/?p=live-build.git;a=commitdiff;h=8eaba8ea5ced274ceb8357a64ead3ff05854e9bc
>>
>> I know that ubuntu mode support not a priority ATM but I was testing
>> live-build 4.0.3-1 with ubuntu mode and the this issue came up.
>>
>> To workaround the problem I've simply edited manually the file
>> /usr/lib/live/build/config. I have replaced the content of
>> config/package-lists/live.list.chroot file with
>>
>>         casper
>>
>> instead of "live-boot live-config live-config-systemd".
>>
>> Then I clean up the build tree, ran "lb config" again and run "sudo lb
>> build" to build the live image, which was then completed and booted
>> successfully.
>>
>> I would provide a patch but I really don't know if you guys want to
>> deal with the content of config/package-lists/live.list.chroot using
>> just $LB_PARENT_DISTRIBUTION or using $LB_MODE and/or also
>> $LB_INITRAMFS or any other solution you may already have.
>>
>> Thank you.
>>
>>
>> -- Package-specific info:
>>
>> -- System Information:
>> Debian Release: 7.7
>>    APT prefers stable-updates
>>    APT policy: (500, 'stable-updates'), (500, 'stable')
>> Architecture: amd64 (x86_64)
>>
>> Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
>> Locale: LANG=pt_PT.UTF-8, LC_CTYPE=pt_PT.UTF-8 (charmap=UTF-8)
>> Shell: /bin/sh linked to /bin/dash
>>
>> Versions of packages live-build depends on:
>> ii  debootstrap  1.0.64~bpo70+1
>>
>> Versions of packages live-build recommends:
>> ii  cpio                            2.11+dfsg-0.1
>> pn  live-boot-doc                   <none>
>> pn  live-config-doc                 <none>
>> pn  live-manual-html | live-manual  <none>
>>
>> live-build suggests no packages.
>>
>> -- no debconf information
>>
>>
>


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to