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

The parameter -chroot-build



On Sun, Nov 25, 2007 at 11:33:18AM +0200, d ma wrote:
> Hello,
> 
> what does the parameter -chroot-build?
It means the commands run are from the host system, and not from
within the chroot.

> if it is set it to "disabled" and then iso image with squashfs is builded,
> what does it change?
/usr/bin/mksquashfs is used rather than /path/to/d-l/chroot/usr/bin.

> does it prevent the long operation of copying "chroot" to "chroot/chroot"?
> why isn't "disabled" the default value of this option?
Yes I think it might:
http://lists.alioth.debian.org/pipermail/debian-live-devel/2007-November/002659.html

/usr/bin/lh_binary_chroot:
|if [ "${LH_CHROOT_BUILD}" = "disabled" ]
|then
|        exit 0
|fi
|
|[...]
|
|${LH_ROOT_COMMAND} cp -a chroot chroot.tmp
|${LH_ROOT_COMMAND} mv chroot.tmp chroot/chroot

Additionally it means the tools don't have to be installed and later
removed, which saves some (also slow) apt runs.

Daniel, what do you mean by "tainted"?  Just that the installed
packages work the same as the ones that would be installed in the
chroot?  This doesn't seem like a big restriction or something that
would inhibit or restrict utility by "normal people".

Justin



Reply to: