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

Bug#746570: live-build: chroot image contains /etc/mtab as a regular file



Package: live-build
Version: 4.0~alpha36-1
Severity: minor

At the time that *.hook.chroot run, /etc/mtab is a regular file.
Since wheezy, Debian has preferred it to be a symlink to /proc/mounts
(it became important to do that with kernels >= 2.6.26). I'm not sure
which stage of installation is normally responsible for this, but
live-build doesn't do it.

I'm currently using this code in a hook at 0500*.hook.chroot:

rm -f /etc/mtab
ln -s /proc/mounts /etc/mtab

wheezy's sysvinit and systemd both fix this up during boot, and it looks
as though extlinux(8) prefers /proc/mounts anyway, but it's probably useful
to have the correct mtab for ad-hoc mount + chroot stuff - in particular,
I'm not sure whether other bootloaders like grub do the same as extlinux,
or whether they trust /etc/mtab.

    S

-- Package-specific info:

-- System Information:
Debian Release: jessie/sid
  APT prefers proposed-updates
  APT policy: (500, 'proposed-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages live-build depends on:
ii  cdebootstrap  0.5.10
ii  debootstrap   1.0.59
ii  python3       3.3.4-1

Versions of packages live-build recommends:
ii  cpio                            2.11+dfsg-2
ii  live-boot-doc                   4.0~alpha21-1
ii  live-config-doc                 4.0~alpha33-1
ii  live-manual-html [live-manual]  1:4.0~alpha12-1

live-build suggests no packages.

-- no debconf information


Reply to: