[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: lh build: How-to debug Sub-process /usr/bin/dpkg returned an error code (1)



On 07/05/2010 10:52 AM, Philippe Lelédy wrote:
> sudo mount -o bind /proc chroot/proc

this is what lh does automatically anyway and shouldn't be needed. also,
the reason of the failure above is not grub (grub can't detect the root
partition, but it's actually good that it can't, since it doesn't need
to, the resulting system is a live system, not a regular one, and it
should not be tainted with information from your host system).

it's desktop-base that is failing with recent updates in grub. it's a
know bug, the respective maintainers are sorting things out.

> I canceled "lh chroot" when I saw:
> 
> Begin copying chroot
> 
> because it take time (useful in general, but useless for me)

this is not from 'lh chroot', but binary_chroot, which means you have
not called 'lh chroot' above, but 'lh build'.

if you would call 'lh chroot', then you would not need to interrupt it
and it would exactely do what you want (and not more).

> find chroot -name '*.gz' -print0 | xargs -0 gunzip

why? i don't have any numbers at hand, but i don't think it makes much
of a difference, compression wise.

> (which is probably a poor idea because it breaks man aliases)

you might want to exclude it with '-and -not -path "/usr/share/man/*" or
something like that.

> I issued mksquashfs chroot ... , I don't need more ( I distributed
> multi-OS USB keys to my students, so the whole boot process is my own
> business, I don't need lh-helper build anything else than chroot)

so you still want a squashfs image then? i strongly recommend that
you're letting lh build that squashfs (including the copying of the
chroot), otherwise you have no guarantee that the resulting filesystem
image is clean and working.

> there are some discrepancies between -p gnome (which is lh-helper's
> idea of which packages make up gnome) and what is actually gnome in
> lucid. Prior the failure related in this thread I had do to that:

indeed, system-config-printer is named system-config-printer-gnome in
ubuntu. i've updated the gnome list in git to reflect that, thanks.

> I now have a wonderful live ubuntu/lucid which all packages I recommend
> to my students ( and use myself as a portable OS ).

nice to hear, thanks for sharing.

Regards,
Daniel

-- 
Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:          daniel.baumann@panthera-systems.net
Internet:       http://people.panthera-systems.net/~daniel-baumann/


Reply to: