Bug#447260: live-helper: resolv.conf should be removed from cache/stages_bootstrap/etc
- Subject: Bug#447260: live-helper: resolv.conf should be removed from cache/stages_bootstrap/etc
- From: karme at berlios.de (Jens Thiele)
- Date: Tue, 08 Jan 2008 02:02:16 +0100
- Message-id: <[🔎] 87ejctuo2v.fsf@thialfi.karme-net.hirschau>
- In-reply-to: <4736D1AC.70203@debian.org> (Daniel Baumann's message of "Sun\, 11 Nov 2007 10\:55\:56 +0100")
- References: <4736D1AC.70203@debian.org>
Daniel Baumann <daniel at debian.org> writes:
> Hi,
>
> before the rootfs image is created, resolv.conf gets truncated (on
> behalf of lh_chroot_resolv remove). This happens independently of
> whetever the chroot is restored from cache or not. Could you provide
> more information in which case you actually end up with a non-truncated
> resolv.conf?
>
>>From a short look at the respective helpers (lh_binary, lh_chroot,
> lh_chroot_resolv), I can't imagine a case where this can happen.
Looking at lh_binary, I now think resolv.conf is always taken from the
host system:
38
39 if [ "${LH_CHROOT_BUILD}" = "enabled" ]
40 then
41 # Configuring chroot
42 lh_chroot_devpts install ${*}
43 lh_chroot_proc install ${*}
44 lh_chroot_sysfs install ${*}
45 lh_chroot_hosts install ${*}
46 lh_chroot_resolv install ${*}
47 lh_chroot_hostname install ${*}
48 lh_chroot_sources install ${*}
49 fi
50
51 # Building root filesystem
52 lh_binary_rootfs ${*}
maybe line 46 should be removed or moved after line 52 ?!
Greetings
Jens
Reply to: