Bug#766920: initramfs-tools: update-initramfs makes system unbootable due to missing rootfs
Package: initramfs-tools
Version: 0.116
Severity: critical
Justification: breaks the whole system
Dear Maintainer,
During an update, this is what I see:
[..]
Processing triggers for initramfs-tools (0.116) ...
update-initramfs: Generating /boot/initrd.img-3.16-3-amd64
/803: No such file or directory
[update continues]
After a reboot, the system is unbootable due to a missing rootfs. As you can
see below, the root fs is 803 (which in fact is /dev/sda3)
A workaround is to set a symlink:
# ln -s /dev/root /803
After that, run:
# dpkg-reconfigure linux-image-3.16-3-amd64
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-3.16-3-amd64
/etc/kernel/postinst.d/zz-runlilo:
Warning: LBA32 addressing assumed
Added Linux *
Added LinuxOLD
Added memtest
One warning was issued.
I've seen this issue on a few systems running Debian Testing. In all cases it
was /dev/sda3 as rootfs.
Richard.
-- Package-specific info:
-- initramfs sizes
-rw-r--r-- 1 root root 3.8M Sep 24 18:07 /boot/initrd.img-3.14-2-amd64
-rw-r--r-- 1 root root 4.1M Oct 26 21:14 /boot/initrd.img-3.16-2-amd64
-rw-r--r-- 1 root root 4.1M Oct 26 21:23 /boot/initrd.img-3.16-3-amd64
-- /proc/cmdline
auto BOOT_IMAGE=Linux ro root=803
-- resume
RESUME=UUID=eb986d31-94bc-4e46-b772-d2171f5b7cf0
-- /proc/filesystems
ext3
ext2
ext4
fuseblk
-- lsmod
Module Size Used by
unix_diag 12521 0
tcp_diag 12512 0
inet_diag 17340 1 tcp_diag
nf_conntrack_netlink 35433 0
xt_connmark 12637 1
ipt_REJECT 12465 2
xt_set 13071 2
ip_set_hash_ip 25974 1
ip6t_REJECT 12468 2
xt_NFLOG 12462 7
ip_set 34886 2 ip_set_hash_ip,xt_set
nfnetlink_log 17201 2 xt_NFLOG
nfnetlink 12989 5 nfnetlink_log,ip_set,nf_conntrack_netlink
nf_conntrack_ipv6 13605 6
nf_defrag_ipv6 33358 1 nf_conntrack_ipv6
xt_tcpudp 12527 21
xt_length 12460 3
xt_limit 12601 3
xt_conntrack 12681 11
iptable_filter 12536 1
iptable_nat 12646 0
nf_conntrack_ipv4 18455 7
nf_defrag_ipv4 12483 1 nf_conntrack_ipv4
nf_nat_ipv4 12912 1 iptable_nat
ip6table_filter 12540 1
ip6table_mangle 12540 0
iptable_mangle 12536 1
ip6_tables 26025 2 ip6table_filter,ip6table_mangle
ip_tables 26011 3 iptable_filter,iptable_mangle,iptable_nat
x_tables 27111 15 ip6table_filter,ip6table_mangle,xt_length,ip_tables,xt_tcpudp,xt_NFLOG,xt_limit,xt_conntrack,xt_set,iptable_filter,xt_connmark,ipt_REJECT,iptable_mangle,ip6_tables,ip6t_REJECT
hid_generic 12393 0
usbhid 44467 0
hid 102264 2 hid_generic,usbhid
sr_mod 21903 0
cdrom 47424 1 sr_mod
ata_generic 12490 0
iTCO_wdt 12831 0
iTCO_vendor_support 12649 1 iTCO_wdt
evdev 17445 1
ehci_pci 12512 0
uhci_hcd 43499 0
ehci_hcd 69837 1 ehci_pci
coretemp 12820 0
hpilo 16902 0
usbcore 195340 4 uhci_hcd,ehci_hcd,ehci_pci,usbhid
ata_piix 33592 0
kvm_intel 139077 0
acpi_power_meter 17372 0
libata 177457 2 ata_generic,ata_piix
kvm 388597 1 kvm_intel
radeon 1336879 1
sg 29973 0
ttm 69670 1 radeon
drm_kms_helper 49210 1 radeon
e1000e 203664 0
drm 249955 4 ttm,drm_kms_helper,radeon
ptp 17692 1 e1000e
pps_core 17225 1 ptp
pcspkr 12595 0
hpwdt 12894 0
psmouse 98616 0
serio_raw 12849 0
i2c_algo_bit 12751 1 radeon
i2c_core 46012 4 drm,drm_kms_helper,i2c_algo_bit,radeon
lpc_ich 20768 0
mfd_core 12601 1 lpc_ich
bnx2 83625 0
i7core_edac 22278 0
ipmi_si 48709 0
edac_core 47369 2 i7core_edac
ipmi_msghandler 39917 1 ipmi_si
crc32c_intel 21809 0
usb_common 12440 1 usbcore
button 12944 0
processor 28221 0
nf_nat_ftp 12460 0
nf_conntrack_ftp 16783 1 nf_nat_ftp
nf_nat_tftp 12422 0
nf_nat 18241 4 nf_nat_ftp,nf_nat_ipv4,nf_nat_tftp,iptable_nat
nf_conntrack_tftp 12433 1 nf_nat_tftp
nf_conntrack 87432 12 nf_nat_ftp,nf_nat,nf_nat_ipv4,nf_nat_tftp,xt_conntrack,nf_conntrack_netlink,xt_connmark,nf_conntrack_ftp,iptable_nat,nf_conntrack_ipv4,nf_conntrack_ipv6,nf_conntrack_tftp
8021q 27858 0
garp 13117 1 8021q
stp 12437 1 garp
mrp 17343 1 8021q
llc 12745 2 stp,garp
loop 26605 0
bonding 125004 0
fuse 83350 1
autofs4 35529 2
ext4 469572 4
crc16 12343 1 ext4
mbcache 17171 1 ext4
jbd2 82413 1 ext4
dm_mod 89373 0
sd_mod 44356 6
crc_t10dif 12431 1 sd_mod
crct10dif_generic 12581 1
crct10dif_common 12356 2 crct10dif_generic,crc_t10dif
hpsa 78568 5
scsi_mod 191405 5 sg,hpsa,libata,sd_mod,sr_mod
thermal 17559 0
thermal_sys 27642 2 thermal,processor
shpchp 31121 0
-- /etc/initramfs-tools/modules
-- /etc/kernel-img.conf
# This is a sample /etc/kernel-img.conf file
# See kernel-img.conf(5) for details
# If you want the symbolic link (or image, if move_image is set) to be
# stored elsewhere than / set this variable to the dir where you
# want the symbolic link. Please note that this is not a Boolean
# variable. This may be of help to loadlin users, who may set both
# this and move_image. Defaults to /. This can be used in conjunction
# with all above options except link_in_boot, which would not make
# sense. (If both image_dest and link_in_boot are set, link_in_boot
# overrides).
image_dest = /
# This option manipulates the build link created by recent kernels. If
# the link is a dangling link, and if a the corresponding kernel
# headers appear to have been installed on the system, a new symlink
# shall be created to point to them.
#relink_build_link = YES
# If set, the preinst shall silently try to move /lib/modules/version
# out of the way if it is the same version as the image being
# installed. Use at your own risk.
#clobber_modules = NO
# If set, does not prompt to continue after a depmod problem in the
# postinstall script. This facilitates automated installs, though it
# may mask a problem with the kernel image. A diag‐ nostic is still
# issued. This is unset be default.
# ignore_depmod_err = NO
# These setting are for legacy postinst scripts only. newer postinst
# scripts from the kenrel-package do not use them
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
-- /sys/block
loop0
loop1
loop2
loop3
loop4
loop5
loop6
loop7
sda
sr0
-- mkinitramfs hooks
/etc/initramfs-tools/hooks/:
/usr/share/initramfs-tools/hooks:
busybox
dmsetup
fuse
keymap
klibc
kmod
lvm2
ntfs_3g
resume
thermal
udev
zz-busybox
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages initramfs-tools depends on:
ii cpio 2.11+dfsg-2
ii klibc-utils 2.0.4-2
ii kmod 18-3
ii udev 215-5+b1
Versions of packages initramfs-tools recommends:
ii busybox 1:1.22.0-9
Versions of packages initramfs-tools suggests:
ii bash-completion 1:2.1-4
-- no debconf information
Reply to: