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

Bug#782641: marked as done (initramfs-tools: nfs booting requires /usr to be present on the nfs root filesystem)



Your message dated Sun, 27 Dec 2015 23:00:15 +0000
with message-id <E1aDKIR-0001lX-Nm@franck.debian.org>
and subject line Bug#782641: fixed in initramfs-tools 0.121~rc2
has caused the Debian Bug report #782641,
regarding initramfs-tools: nfs booting requires /usr to be present on the nfs root filesystem
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
782641: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=782641
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: initramfs-tools
Version: 0.120
Severity: normal

Dear Maintainer,

Problem occurs when attempting to do an nfs network boot with no /usr directory
present on the nfs root partition.

At https://www.debian.org/releases/jessie/i386/apcs02.html.en it says that
/etc, /bin, /sbin, /lib & /dev must be present on the root partition in order
to boot.

But in the script /usr/share/initramfs-tools/scripts/nfs there is:

        # loop until nfsmount succeeds
        nfs_mount_root_impl
        nfs_retry_count=0
        while [ ${nfs_retry_count} -lt ${delay} ] \
                && ! chroot "${rootmnt}" test -x "${init}" ; do
                [ "$quiet" != "y" ] && log_begin_msg "Retrying nfs mount"
                /bin/sleep 1
                nfs_mount_root_impl
                nfs_retry_count=$(( ${nfs_retry_count} + 1 ))
                [ "$quiet" != "y" ] && log_end_msg
        done

which attempts to execute /usr/bin/test immediately after mounting the root
partition and before mounting any of the filesystems in /etc/fstab. This fails
if your are trying to mount /usr from another filesystem by using an entry in
/etc/fstab. The script could be modified to use the shell built-in "test"
command by changing the line

                && ! chroot "${rootmnt}" test -x "${init}" ; do

to

                && ! chroot "${rootmnt}" sh -c "[ -x \"${init}\" ]" ; do

which enables the system to boot when /usr is not present.



-- Package-specific info:
-- initramfs sizes
-rw-r--r-- 1 root root 8.6M Nov 15 01:17 /boot/initrd.img-2.6.32-5-686
-rw-r--r-- 1 root root  14M Apr 15 12:38 /boot/initrd.img-3.16.0-4-686-pae
-rw-r--r-- 1 root root  11M Nov 19 15:07 /boot/initrd.img-3.2.0-4-686-pae
-- /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-686-pae root=UUID=704cf8be-047f-406e-903b-677e3dd1e24d ro quiet

-- resume
RESUME=UUID=da7f8ef7-dcc2-4203-b8f3-b2d7673c9768
-- /proc/filesystems
	ext3
	ext2
	ext4
	fuseblk
	xfs
	jfs
	msdos
	vfat
	ntfs
	minix
	hfs
	hfsplus
	qnx4
	ufs
	btrfs

-- lsmod
Module                  Size  Used by
btrfs                 850694  0 
xor                    25716  1 btrfs
raid6_pq               95207  1 btrfs
ufs                    72668  0 
qnx4                   12876  0 
hfsplus                91910  0 
hfs                    48797  0 
minix                  30809  0 
ntfs                  197660  0 
vfat                   16967  0 
msdos                  16863  0 
fat                    52647  2 vfat,msdos
jfs                   162644  0 
xfs                   699897  0 
crc32c_generic         12576  2 
libcrc32c              12394  1 xfs
dm_mod                 83002  0 
binfmt_misc            12733  1 
speedstep_lib          12463  0 
cpufreq_powersave      12422  0 
cpufreq_userspace      12477  0 
cpufreq_stats          12694  0 
cpufreq_conservative    13872  0 
nfsd                  236959  13 
auth_rpcgss            45765  1 nfsd
oid_registry           12387  1 auth_rpcgss
nfs_acl                12463  1 nfsd
nfs                   168022  0 
lockd                  73443  2 nfs,nfsd
fscache                44782  1 nfs
sunrpc                211341  19 nfs,nfsd,auth_rpcgss,lockd,nfs_acl
nouveau              1008276  2 
snd_ens1371            22679  0 
snd_ac97_codec         96151  1 snd_ens1371
snd_pcm_oss            44124  0 
mxm_wmi                12467  1 nouveau
snd_mixer_oss          21822  1 snd_pcm_oss
wmi                    17147  2 mxm_wmi,nouveau
snd_pcm                78128  3 snd_pcm_oss,snd_ac97_codec,snd_ens1371
video                  17763  1 nouveau
ttm                    72160  1 nouveau
drm_kms_helper         44450  1 nouveau
drm                   203555  5 ttm,drm_kms_helper,nouveau
snd_seq_midi           12744  0 
snd_seq_midi_event     13124  1 snd_seq_midi
snd_rawmidi            22284  2 snd_ens1371,snd_seq_midi
i2c_algo_bit           12647  1 nouveau
via686a                17099  0 
pcspkr                 12531  0 
i2c_viapro             12451  0 
i2c_core               36838  5 drm,drm_kms_helper,i2c_algo_bit,i2c_viapro,nouveau
evdev                  17136  9 
snd_seq                51555  2 snd_seq_midi_event,snd_seq_midi
serio_raw              12737  0 
shpchp                 30673  0 
snd_seq_device         12980  3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer              22010  2 snd_pcm,snd_seq
snd                    55101  9 snd_pcm_oss,snd_ac97_codec,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_ens1371,snd_seq_device,snd_mixer_oss
soundcore              12890  1 snd
ac97_bus               12462  1 snd_ac97_codec
gameport               13270  1 snd_ens1371
button                 12824  1 nouveau
processor              27590  0 
thermal_sys            27122  2 video,processor
loop                   21987  0 
fuse                   77496  1 
parport_pc             26004  1 
ppdev                  16686  0 
lp                     12766  0 
parport                35213  3 lp,ppdev,parport_pc
autofs4                34865  2 
ext4                  438464  2 
crc16                  12327  1 ext4
mbcache                17027  1 ext4
jbd2                   72879  1 ext4
hid_generic            12369  0 
usbhid                 43759  0 
hid                    81008  2 hid_generic,usbhid
sg                     25573  0 
sd_mod                 43684  5 
crc_t10dif             12399  1 sd_mod
sr_mod                 21568  0 
cdrom                  46828  1 sr_mod
crct10dif_generic      12517  1 
crct10dif_common       12340  2 crct10dif_generic,crc_t10dif
ata_generic            12450  0 
pata_via               12722  4 
uhci_hcd               38948  0 
ehci_hcd               64933  0 
libata                161865  2 pata_via,ata_generic
e100                   35304  0 
mii                    12595  1 e100
usbcore               170994  3 uhci_hcd,ehci_hcd,usbhid
usb_common             12408  1 usbcore
scsi_mod              164132  4 sg,libata,sd_mod,sr_mod
floppy                 56098  0 

-- /etc/initramfs-tools/modules

-- /etc/kernel-img.conf
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
do_bootloader = no
do_initrd = yes
link_in_boot = no

-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=n
COMPRESS=gzip
DEVICE=
NFSROOT=auto

-- /etc/initramfs-tools/update-initramfs.conf
update_initramfs=yes
backup_initramfs=no

-- mkinitramfs hooks
/etc/initramfs-tools/hooks/:

/usr/share/initramfs-tools/hooks:
busybox
dmsetup
fsck
fuse
keymap
klibc
kmod
ntfs_3g
resume
thermal
udev
zz-busybox
zz_nvidia-blacklists-nouveau


-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.16.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages initramfs-tools depends on:
ii  busybox            1:1.22.0-9+deb8u1
ii  cpio               2.11+dfsg-4.1
ii  klibc-utils        2.0.4-2
ii  kmod               18-3
ii  module-init-tools  18-3
ii  udev               215-14

Versions of packages initramfs-tools recommends:
ii  busybox  1:1.22.0-9+deb8u1

Versions of packages initramfs-tools suggests:
ii  bash-completion  1:2.1-4

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: initramfs-tools
Source-Version: 0.121~rc2

We believe that the bug you reported is fixed in the latest version of
initramfs-tools, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 782641@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ben Hutchings <ben@decadent.org.uk> (supplier of updated initramfs-tools package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 22 Dec 2015 22:07:42 +0000
Source: initramfs-tools
Binary: initramfs-tools initramfs-tools-core
Architecture: all source
Version: 0.121~rc2
Distribution: experimental
Urgency: medium
Maintainer: Debian kernel team <debian-kernel@lists.debian.org>
Changed-By: Ben Hutchings <ben@decadent.org.uk>
Closes: 588452 602331 620814 633582 696632 697017 747871 766920 770394 782641 783291 783410 783620 784234 785147 785564 790095 791754 792557 793786 795831 795832 795837 795839 797361 799443 801154 807000 807004 807256
Description: 
 initramfs-tools-core - generic modular initramfs generator (core tools)
 initramfs-tools - generic modular initramfs generator (automation)
Changes:
 initramfs-tools (0.121~rc2) experimental; urgency=medium
 .
   * Upload to experimental, not unstable
 .
 initramfs-tools (0.121~rc1) unstable; urgency=medium
 .
   [ Ben Hutchings ]
   * [da2159f] Add .gitignore files to exclude generated and backup files
   * [8ad7317] bash-completion: Install using dh_bash-completion
   * [31d21d6] Rename lintian override file so dh_lintian installs it
     automatically
   * [9d45599] debian/control: Update and shorten description
   * [2bf8c27] Split initramfs-tools binary packages into core and automation
     hooks
   * [6562e1b] debian/control,debian/copyright: Use canonical HTTP-S URLs for
     Alioth git repos
   * [76dab5a] hook-functions: Include soft-dependencies of all kernel modules
     (Closes: #588452)
   * [7285ffb] hooks/busybox: Fail if busybox is wanted but not found
     (Closes: #785564)
   * [852b9ab] scripts/functions: Use shell to create stamp file instead of
     'touch' (Closes: #783291)
   * [9aea31d] sripts/local: Remove obsolete hint about ATA device renaming
   * [e0c8d03] hook-functions: Always use /proc/mounts, avoiding mangling of
     /dev/root (Closes: #766920)
   * [728f534] hook-functions: Fold sys_walk_modalias into sys_walk_mod_add
   * [d122ab6] hook-functions: Split block device sysfs lookup into a separate
     function
   * [aff5209] hook-functions: Remove loop-aes support
   * [3cb744c] hook-functions: Rewrite block device sysfs lookup to be generic
     (Closes: #747871, #785147, #807004, #807256)
   * [8ac52dc] hook-functions: Include modules for all components of a
     multi-disk device (Closes: #620814)
   * [c69313d] parse_numeric: Tighten check for whether 'root' parameter is a
     number (Closes: #697017)
   * [8062189] parse_numeric: Add support for 20-bit minor numbers in 'root'
     parameter
   * [88f98b5] parse_numeric: Replace numeric root with canonical device name
   * [28e5a0a] update-initramfs: Use linux-version command to sort versions
     (Closes: #770394, #795837)
   * [4b4e578] lsinitramfs.8: Update the BUGS section to note fix for #717805
     (Closes: #790095)
   * [fa82bf1] hooks/fsck: Stop copying sulogin, which is no longer used
   * [95beada] Only run fsck if enabled in /etc/fstab (pass != 0)
     (Closes: #797361)
   * [371221b] hooks/fsck: Use 'command' to find fsck.<type> (Closes: #784234)
   * [e352b94] scripts/functions: Use blkid to resolve LABEL= and UUID= block
     device IDs
   * [7469eee] scripts/functions: Handle PARTLABEL= and PARTUUID= block device
     IDs using blkid (Closes: #801154)
   * [fe30453] hook-functions: Include drivers/nvme in block driver modules
     (Closes: #807000)
   * [fa1985b] update-initramfs: Run 'sync' after writing the initramfs
     (Closes: #783620)
   * [6a40a89] hook-functions: Introduce copy_file function
   * [a7fc630] Use copy_file to copy config files and firmware, instead of
     copy_exec
   * [52ae50c] hook-functions: Use copy_file to install modules
   * [b215c18] Support multiple break points using a comma delimiter
     (Closes: #795832)
   * [b2dfbeb] Set emacs local variables to implement our shell coding style
   * [b1dc049] hook-functions: Preserve symlinks when copying files
     (Closes: #799443)
   * [319b141] hooks/fsck: Simplify by letting copy_exec handle symlinks
   * [143b9ef] maintainer-notes.html: Update changelog command lines to use
     'gbp dch'
   * [f01cdd4] debian/control: Ensure lockstep upgrade of initramfs-tools and
     -core
   * [88f7bb6] debian/TODO: Update for released and pending changes
   * [d136f22] scripts/local: Remove residual support for separate /etc
     filesystem
   * [14913b2] scripts/local: Name parameters to local_device_setup
   * [3080087] Defer resolving block device IDs to local_device_setup
   * [3574b56] scripts/functions: Stop resolving symlinks in resolve_device
     (Closes: #791754)
 .
   [ Laurent Bigonville ]
   * [27405fc] Support fsck.mode= and fsck.repair= parameters as known by
     systemd-fsck (Closes: #783410, #792557)
   * [8a2f298] Run new panic scripts just before dropping to a shell
     (Closes: #602331)
 .
   [ Boris Egorov ]
   * [c14d661] mkinitramfs: fix bashism in script (Closes: #633582)
 .
   [ Salvatore Bonaccorso ]
   * [f78c9a9] scripts/nfs: Check return value from nfs_mount_root_impl
     (Closes: #782641)
 .
   [ Roger Shimizu ]
   * [50aa8e2] advance the timing of insmod netconsole
   * [3acddcc] redirect debug info to netconsole (Closes: #793786)
 .
   [ Andy Whitcroft ]
   * [4ba741b] Add 2>&1 to the run-init line (Closes: #795831)
   * [1f5c193] When adding i8042 also add psmouse as some keyboards are behind
     the mouse (Closes: #795839)
 .
   [ Roger Leigh ]
   * [6a8d18b] init: Always migrate /run to the rootfs (Closes: #696632)
Checksums-Sha1: 
 637879afd5e58783b459e5d143925c36e6b3fd38 1827 initramfs-tools_0.121~rc2.dsc
 ae8241178fec79ee313b7047b895d11cb7841678 81796 initramfs-tools_0.121~rc2.tar.xz
 ca77d0e7dcee3156cfa17068d6d5b141c1cd8c19 91304 initramfs-tools-core_0.121~rc2_all.deb
 5c816122c238ea6c85e536dbd146e5bf42e1277d 61984 initramfs-tools_0.121~rc2_all.deb
Checksums-Sha256: 
 a843f037d009a716a05608e53358a91882acfee5abecd34d8b05370e6a75f60c 1827 initramfs-tools_0.121~rc2.dsc
 692f46cdb3d98463a39a24b3d6b73e90e1f8644f47898c42c9dfe421b0e17e1a 81796 initramfs-tools_0.121~rc2.tar.xz
 136b2361c60146f48473c074e0ab9322bb985fead530b7ff5c2047c2f37ad9f2 91304 initramfs-tools-core_0.121~rc2_all.deb
 0c95877a21a1d8518218e7790d90840f2fa1a8acf71c7862a49e10645852db0e 61984 initramfs-tools_0.121~rc2_all.deb
Files: 
 5a088b0402a552cb25a3d526b378b298 1827 utils optional initramfs-tools_0.121~rc2.dsc
 ee04e46be524b9dabe82422373e4f69d 81796 utils optional initramfs-tools_0.121~rc2.tar.xz
 4a5f88c08bca7db8f3bea5a2a0654042 91304 utils optional initramfs-tools-core_0.121~rc2_all.deb
 ba9a71555f1e2695e933984954f05946 61984 utils optional initramfs-tools_0.121~rc2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIVAwUBVnnV7+e/yOyVhhEJAQoBJhAAkjSQFmokaADTzpf6tOlHsw1Zr9xOUV/T
hiOxn7eAP1Az/HfMSs5FQtZfoP8FN89/vcGc0+2uAe7YGNRNPR3QM5ryWU1aGDL6
RaAaoUoFqUAGasH05b0/6O7UD8w5ZGBzj5V6sQgSXO5R+nzOsU90K7/XehLLwEWH
iccC8jl3zK+CEF8klqXuAMG4/pFb+Dr7bE29V/K7ST90EdOKIggXaUkp5KXMuIbA
p6QJcgVQFxJ4FIYko5N42oqb78p5BqsA2BLe8d7u1DO+YboLOpDG40w8GPRFAgyF
e7lb62nwayIN8zdSrLwdwvxYftyMz1SdH3//cybWbZ0+O+MvBwvg5Tq+fkpD2j7V
USxL+WHpoMO8bhGao/Dp6XYrr+dU1vYWIgwarbObqynAtj9WLzAfzNnovr//qKvc
VzNYvplo3T0YYSwK0vBx7Vte4N/FJarFkbiTiGQYZyZ/ok9irphqy2tVoJ2m9Wb3
QbqjV7ujBzXSgFShm09uAMxpGZrrUZMrpsRM6CvRBe+ZmUXh3+r8TiNjoT1/XEEd
xXrHGyexLqVzHmQsvnBL7JyF3iigKMO9URNiZIbWGIiNyq3wDL7/u0u//iARO9aQ
ii+oJfi+eR8HrrEAlmrMCTFz0RRM559hEG/zK6tevtGyezXSy04gRm/TCHuEeltR
sUFVzGtDzn8=
=0u0e
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: