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

Bug#668616: marked as done (initramfs-tools: for root /boot/rootfs missing /boot/rootfs /sys/block/ entry)



Your message dated Wed, 06 Jun 2012 13:17:23 +0000
with message-id <E1ScG71-0004k3-GL@franck.debian.org>
and subject line Bug#668616: fixed in initramfs-tools 0.104
has caused the Debian Bug report #668616,
regarding initramfs-tools: for root /boot/rootfs missing /boot/rootfs /sys/block/ entry
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.)


-- 
668616: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=668616
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: initramfs-tools
Version: 0.101
Severity: important
Tags: patch

  Hi,

  Since my last upgrade on a squeeze with parts of wheezy, update-initramfs
fails to create the initrd.img file with the following error message:

mkinitramfs: for root /boot/rootfs missing /boot/rootfs /sys/block/ entry
mkinitramfs: workaround is MODULES=most
mkinitramfs: Error please report the bug

The machine is a kvm virtual machine with few space on /boot so the
suggested workaround is not an option for me.


  During my last upgrade, initramfs-tools was *not* upgraded. So I tried
to see in details where the problem really come from.

Looking into /usr/share/initramfs-tools/hook-functions, I see:
=====
# find and only copy root relevant modules
dep_add_modules()
{
[...]
        # findout root block device + fstype
        eval "$( mount | while read dev foo mp foo fs opts rest ; do \
                [ "$mp" = "/" ] && printf "root=$dev\nFSTYPE=$fs" \
                && break; done)"

        # On failure fallback to /proc/mounts if readable
        if [ -z "$root" ] && [ -r /proc/mounts ]; then
                eval "$(while read dev mp fs opts rest ; do \
                        [ "$mp" = "/" ] && [ "$fs" != "rootfs" ] \
                        && printf "root=$dev\nFSTYPE=$fs"\
                        && break; done < /proc/mounts)"
        fi
[...]
        root="$(readlink -f ${root})"
[...]
        # Error out if /sys lack block dev
        if [ -z "${block}" ] || [ ! -e /sys/block/${block} ]; then
                echo "mkinitramfs: for root ${root} missing ${block} /sys/block/ entry" >&2
                echo "mkinitramfs: workaround is MODULES=most" >&2
                echo "mkinitramfs: Error please report the bug" >&2
                exit 1
        fi
[...]
}
====

Note how the output of the 'mount' command is handled differently from
the contents of '/proc/mounts': there is no test ' && [ "$fs" != "rootfs" ]'
in the first case.

And if root=rootfs, then 'root="$(readlink -f ${root})"' set root to /boot/rootfs
as rootfs does not exist and the script is run from the boot directory.

kooot:/boot# mount
rootfs on / type rootfs (rw)
[...]
kooot:/boot# readlink -f rootfs
/boot/rootfs
kooot:/boot# 

During my upgrade, sysvinit-utils and initscripts have been upgraded from
2.88dsf-13.1 to 2.88dsf-22.1. I think (I did not check) that this move
/etc/mtab into a symlink to /proc/mounts. So, the result of "mount"
should be handled the same as the contents of /proc/mounts.
And indeed, adding " && [ "$fs" != "rootfs" ]" when handling the
output of mount fixed the problem for me.

  Regards,
    Vincent

-- Package-specific info:
-- initramfs sizes
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.3.0-trunk-amd64 root=/dev/mapper/eyak-root ro quiet

-- resume
RESUME=UUID=c595b643-7575-4004-9fe8-a8ed8939488f
-- /proc/filesystems
	ext4
	ext3
	fuseblk
	vfat
	udf
	iso9660
	hfsplus
	hfs
	ext2
	reiserfs
	xfs
	jfs
	omfs

-- lsmod
Module                  Size  Used by
tun                    18340  2 
nls_iso8859_1          12461  0 
omfs                   18216  0 
jfs                   137479  0 
xfs                   590971  0 
reiserfs              192397  0 
ext2                   59252  0 
hfs                    45882  0 
hfsplus                71608  0 
isofs                  35185  0 
udf                    68066  0 
crc_itu_t              12347  2 udf,omfs
nls_utf8               12456  0 
nls_cp437              16553  0 
vfat                   17315  0 
fat                    45701  1 vfat
aesni_intel            50708  0 
cryptd                 14517  1 aesni_intel
aes_x86_64             16796  1 aesni_intel
aes_generic            33026  2 aes_x86_64,aesni_intel
ip6table_filter        12540  0 
ip6_tables             22175  1 ip6table_filter
iptable_filter         12536  0 
ip_tables              22042  1 iptable_filter
ebtable_nat            12580  0 
ebtables               26274  1 ebtable_nat
x_tables               19073  5 ebtables,ip_tables,iptable_filter,ip6_tables,ip6table_filter
mperf                  12453  0 
cpufreq_stats          12866  0 
cpufreq_userspace      12576  0 
cpufreq_conservative    13147  0 
ppdev                  12763  0 
lp                     17149  0 
cpufreq_powersave      12454  0 
rfcomm                 33671  8 
bnep                   17577  2 
binfmt_misc            12957  1 
uinput                 17440  1 
fuse                   62117  1 
nfsd                  220730  2 
nfs                   313029  0 
nfs_acl                12511  2 nfs,nfsd
auth_rpcgss            37189  2 nfs,nfsd
fscache                36807  1 nfs
lockd                  67454  2 nfs,nfsd
sunrpc                173816  6 lockd,auth_rpcgss,nfs_acl,nfs,nfsd
kvm_intel             122008  0 
kvm                   293782  1 kvm_intel
ext3                  161959  1 
jbd                    57131  1 ext3
coretemp               12898  0 
loop                   22641  0 
snd_hda_codec_hdmi     30783  1 
snd_hda_codec_idt      53822  1 
arc4                   12458  2 
snd_hda_intel          26345  8 
nouveau               575705  0 
snd_seq_midi           12848  0 
snd_hda_codec          82625  3 snd_hda_intel,snd_hda_codec_idt,snd_hda_codec_hdmi
iwlwifi               171306  0 
snd_seq_midi_event     13316  1 snd_seq_midi
snd_rawmidi            23060  1 snd_seq_midi
snd_hwdep              13186  1 snd_hda_codec
mac80211              320642  1 iwlwifi
mxm_wmi                12473  1 nouveau
snd_pcm_oss            41107  0 
joydev                 17266  0 
uvcvideo               62253  0 
ttm                    58093  1 nouveau
snd_mixer_oss          17916  3 snd_pcm_oss
dell_wmi               12477  0 
videobuf2_vmalloc      12664  1 uvcvideo
i915                  361885  4 
snd_seq                45130  2 snd_seq_midi_event,snd_seq_midi
videobuf2_memops       12526  1 videobuf2_vmalloc
sparse_keymap          12760  1 dell_wmi
videobuf2_core         25974  1 uvcvideo
snd_pcm                63998  4 snd_pcm_oss,snd_hda_codec,snd_hda_intel,snd_hda_codec_hdmi
cfg80211              142333  2 mac80211,iwlwifi
videodev               70909  1 uvcvideo
snd_seq_device         13176  3 snd_seq,snd_rawmidi,snd_seq_midi
drm_kms_helper         27273  2 i915,nouveau
psmouse                64997  0 
dell_laptop            17120  0 
snd_page_alloc         13003  2 snd_pcm,snd_hda_intel
iTCO_wdt               17081  0 
parport_pc             22364  1 
v4l2_compat_ioctl32    16655  1 videodev
media                  18148  2 videodev,uvcvideo
btusb                  17509  2 
bluetooth             129614  23 btusb,bnep,rfcomm
dcdbas                 13307  1 dell_laptop
evdev                  17562  26 
serio_raw              12976  0 
pcspkr                 12595  0 
i2c_i801               16870  0 
snd_timer              22917  2 snd_pcm,snd_seq
iTCO_vendor_support    12704  1 iTCO_wdt
rfkill                 19012  4 bluetooth,dell_laptop,cfg80211
i2c_algo_bit           12841  1 i915
snd                    52982  24 snd_timer,snd_seq_device,snd_pcm,snd_seq,snd_mixer_oss,snd_pcm_oss,snd_hwdep,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_hda_codec_idt,snd_hda_codec_hdmi
parport                31858  3 parport_pc,lp,ppdev
wmi                    13243  3 dell_wmi,mxm_wmi,nouveau
drm                   183832  7 drm_kms_helper,i915,ttm,nouveau
video                  17628  2 i915,nouveau
battery                13109  0 
i2c_core               23876  7 drm,i2c_algo_bit,i2c_i801,drm_kms_helper,videodev,i915,nouveau
soundcore              13065  3 snd
button                 12937  2 i915,nouveau
ac                     12624  0 
processor              28212  0 
usb_storage            43902  0 
uas                    13234  0 
ext4                  351132  3 
crc16                  12343  2 ext4,bluetooth
jbd2                   62291  1 ext4
mbcache                13065  3 ext4,ext2,ext3
usbhid                 40559  0 
hid                    81480  1 usbhid
power_supply           13519  4 hid,ac,battery,dell_laptop
dm_mod                 63574  13 
sd_mod                 36136  4 
crc_t10dif             12348  1 sd_mod
ahci                   24997  3 
libahci                22820  1 ahci
libata                141011  2 libahci,ahci
ehci_hcd               40215  0 
sdhci_pci              17852  0 
scsi_mod              162487  4 libata,sd_mod,uas,usb_storage
sdhci                  26993  1 sdhci_pci
usbcore               128753  7 ehci_hcd,usbhid,uas,usb_storage,btusb,uvcvideo
mmc_core               77131  2 sdhci,sdhci_pci
e1000e                129016  0 
usb_common             12354  1 usbcore
thermal                17383  0 
thermal_sys            18048  3 thermal,processor,video

-- /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
BOOT=local
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
fuse
keymap
klibc
kmod
lvm2
ntfs_3g
thermal
udev
uswsusp


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

Kernel: Linux 3.3.0-trunk-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages initramfs-tools depends on:
ii  cpio               2.11-7
ii  klibc-utils        2.0~rc3-1
ii  module-init-tools  6-2
ii  udev               175-3.1

Versions of packages initramfs-tools recommends:
ii  busybox  1:1.19.3-5

Versions of packages initramfs-tools suggests:
ii  bash-completion  1:1.99-3

-- no debconf information



--- End Message ---
--- Begin Message ---
Source: initramfs-tools
Source-Version: 0.104

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:

initramfs-tools_0.104.dsc
  to main/i/initramfs-tools/initramfs-tools_0.104.dsc
initramfs-tools_0.104.tar.gz
  to main/i/initramfs-tools/initramfs-tools_0.104.tar.gz
initramfs-tools_0.104_all.deb
  to main/i/initramfs-tools/initramfs-tools_0.104_all.deb



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 668616@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
maximilian attems <maks@debian.org> (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@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Wed, 06 Jun 2012 14:48:26 +0200
Source: initramfs-tools
Binary: initramfs-tools
Architecture: source all
Version: 0.104
Distribution: unstable
Urgency: high
Maintainer: Debian kernel team <debian-kernel@lists.debian.org>
Changed-By: maximilian attems <maks@debian.org>
Description: 
 initramfs-tools - generic modular initramfs generator
Closes: 601324 652525 655175 660297 668616 670496 674484
Changes: 
 initramfs-tools (0.104) unstable; urgency=high
 .
   [ Michael Prokop ]
   * [9e961c6] docs: clarify that PREREQ is only honored inside single directory.
     Thanks to Marc Haber <mh+debian-bugs@zugschlus.de> for spotting thjs issue
     (Closes: #601324)
 .
   [ maximilian attems ]
   * [b60b440] debian/control: Depend on kmod or m-i-t.
   * [f87e71b] hook-functions: handle rootfs output from mount(8).
     (Closes: #668616)
   * [042c5c9] init: tighten /run/initramfs permissions. (Closes: #655175)
   * [df4ffdf] scripts/functions: panic() don't abort on modprobe failures.
     (Closes: #674484)
 .
   [ Vagrant Cascadian ]
   * [ddbdb4f] init: busybox's switch_root doesn't handle /proc or /sys moving.
     (Closes: #660297)
 .
   [ Balwinder S Dheeman ]
   * [3ff8ee6] init: fixes ignored $tmpfs_size. (Closes: #670496)
 .
   [ Josh Triplett ]
   * [2c5c942] initramfs-tools: speed-up by avoiding forks in the per-module
     hot path. (Closes: #652525)
Checksums-Sha1: 
 cbcfdeeb67bfcb7441c197b47dc675eff922f049 1052 initramfs-tools_0.104.dsc
 1218b9ab4df1557ae4aa2180d46b8740b94af9f0 84519 initramfs-tools_0.104.tar.gz
 57e7b2faada169f5978d64c936b4e2ce0d6aa4c9 91002 initramfs-tools_0.104_all.deb
Checksums-Sha256: 
 45c035c998f8c2ec5a8ca1f50df3e91b30f306bcf1c016bf38ec4806daae30d1 1052 initramfs-tools_0.104.dsc
 6048b66aa067de06419c53353f632315b279eab957cd17157f83c3c60b670e6f 84519 initramfs-tools_0.104.tar.gz
 7817d3b28de728e515078d3452efefb60136ac21ce8c5821fb46ef735f156f73 91002 initramfs-tools_0.104_all.deb
Files: 
 b0eadf22423992235c55d3a0ca49723d 1052 utils optional initramfs-tools_0.104.dsc
 fb46dba7c1886c6020586d99ecfb7519 84519 utils optional initramfs-tools_0.104.tar.gz
 e6519d7618d6b7b1c7dc7678b98f3328 91002 utils optional initramfs-tools_0.104_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAk/PU3gACgkQeW7Lc5tEHqhiigCgppHUxmZ5/fPynMyrvN2f3LgM
KPEAoIsA+bUqlyeP9sX0x+PK9LIWnYrs
=sjD3
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: