[Pkg-sysvinit-devel] Bug#538725: checkroot.sh: fails if root not in fstab

Robert Hart rhart at bathterror.free-online.co.uk
Sun Jul 26 15:22:59 UTC 2009


Package: initscripts
Version: 2.87dsf-1
Severity: normal


If the root fs isn't in /etc/fstab, then when checkroot.sh runs I see an 
fsck usage message, and get dropped to a maintenance shell because fsck 
returns an error code. Would be nice to get a meaningful error message.

The strange thing is that with /fastboot this setup appears to work 
fine, so I had no idea I'd lost the / line in fstab several months ago 
now. If checkroot.sh is the only thing that fails if the line is missing, maybe it should find some other way of finding root? (/proc/cmdline ?)

For reference my fstab file is (or rather was):

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
usbfs		/proc/bus/usb	usbfs	devgid=121,devmode=664	0	0
/dev/sda1       /home           ext3    defaults,relatime        0       2
#/dev/sda6       /mnt/sda6       ext3    defaults,relatime        0       2
/dev/sda5       /mnt/common     vfat    rw,defaults,umask=002,gid=100        0       0
/dev/sda7       none            swap    sw              0       0
/dev/hda        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/sdb	/media/phone	vfat	noauto,user,rw,defaults,umask=002,gid=100	0	0
/dev/sdb1	/media/external	vfat	noauto,user,rw,defaults,umask=002,gid=100	0	0
/dev/sdb2	/media/ipod	vfat	noauto,user,rw,defaults,umask=002,gid=100	0	0

/dev/mmcblk0p1	/media/camera	vfat	noauto,user,rw,defaults
# sid32 chroot
#/home   /var/chroot/sid-ia32/home none    bind      0       0
#/tmp    /var/chroot/sid-ia32/tmp  none    bind      0       0
#/dev    /var/chroot/sid-ia32/dev  none    bind      0       0
#/proc   /var/chroot/sid-ia32/proc none    bind      0       0

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

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

Versions of packages initscripts depends on:
ii  debianutils                 3.2          Miscellaneous utilities specific t
ii  libc6                       2.9-13       GNU C Library: Shared libraries
ii  lsb-base                    3.2-23       Linux Standard Base 3.2 init scrip
ii  mount                       2.15.1~rc1-1 Tools for mounting and manipulatin
ii  sysvinit-utils              2.87dsf-1    System-V-like utilities

Versions of packages initscripts recommends:
ii  e2fsprogs                     1.41.8-2   ext2/ext3/ext4 file system utiliti
ii  psmisc                        22.8-1     utilities that use the proc file s

initscripts suggests no packages.

-- no debconf information





More information about the Pkg-sysvinit-devel mailing list