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

Bug#595364: Assumes /etc/fstab exists (it doesn't in cdebootstrap).



Package: linux-base
Version: 2.6.34-1~experimental.2
Severity: minor

I had cdebootstrap generate a squeeze chroot, and installed a kernel
into it.  When I then ran "dpkg-reconfigure -a -plow" in the chroot,
this package borked the dpkg-reconfigure run because /etc/fstab
doesn't exist.

    + chroot cdebootstrap-amd64 dpkg-reconfigure -a -plow
    [...]
    ifupdown.postinst: Warning: No 'iface lo' definition found in /etc/network/interfaces
    ifupdown.postinst: Warning: No 'auto lo' statement found in /etc/network/interfaces
    update-initramfs: Generating /boot/initrd.img-2.6.32-5-amd64
    df: Warning: cannot read table of mounted file systems: No such file or directory
    warning: can't open /etc/mtab: No such file or directory
    egrep: /etc/fstab: No such file or directory
    egrep: /etc/fstab: No such file or directory
    No such file or directory at /var/lib/dpkg/info/linux-base.postinst line 1207, <STDIN> line 1.

This is an unusual case and I can work around it by creating an empty
fstab before running dpkg-reconfigure, but you might want to consider
adding a test for /etc/fstab's existence.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.35 (SMP w/2 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages linux-base depends on:
ii  debconf [debconf-2.0]         1.5.35     Debian configuration management sy
ii  libapt-pkg-perl               0.1.24+b1  Perl interface to libapt-pkg
ii  libuuid-perl                  0.02-4     Perl extension for using UUID inte
ii  udev                          161-1      /dev/ and hotplug management daemo
ii  util-linux                    2.17.2-3.1 Miscellaneous system utilities

linux-base recommends no packages.

linux-base suggests no packages.

-- debconf information excluded



Reply to: