Bug#809330: initramfs-tools: not able to create a fresh initramfs image
Package: initramfs-tools
Version: 0.120
Severity: important
The bug was seen on a different test box. But given the logs below, the
information provided should be sufficient to confirm.
root@debian-sanboot:/# update-initramfs -c /boot/sanboot.initramfs
Invalid argument for option -k.
Usage: /usr/sbin/update-initramfs [OPTION]...
Options:
-k [version] Specify kernel version or 'all'
-c Create a new initramfs
-u Update an existing initramfs
-d Remove an existing initramfs
-t Take over a custom initramfs with this one
-b Set alternate boot directory
-v Be verbose
-h This message
root@debian-sanboot:/# update-initramfs -c /boot/sanboot.initramfs -k `uname -r`
Invalid argument for option -k.
Usage: /usr/sbin/update-initramfs [OPTION]...
Options:
-k [version] Specify kernel version or 'all'
-c Create a new initramfs
-u Update an existing initramfs
-d Remove an existing initramfs
-t Take over a custom initramfs with this one
-b Set alternate boot directory
-v Be verbose
-h This message
The issue is seen only with -c.
root@debian-sanboot:/# update-initramfs -u -k `uname -r`
update-initramfs: Generating /boot/initrd.img-4.3.0-1-amd64
On the other hand, mkinitramfs works fine.
root@debian-sanboot:~# mkinitramfs -o /boot/sanboot.init
root@debian-sanboot:~#
-- Package-specific info:
-- initramfs sizes
-rw-r--r-- 1 root root 22M Oct 8 21:54 /boot/initrd.img-4.1.8+
-rw-r--r-- 1 root root 31M Nov 7 12:29 /boot/initrd.img-4.2.5+
-rw-r--r-- 1 root root 30M Dec 28 12:00 /boot/initrd.img-4.3.0-1-amd64
-rw-r--r-- 1 root root 31M Dec 12 12:08 /boot/initrd.img-4.3.1+
-rw-r--r-- 1 root root 31M Dec 16 17:10 /boot/initrd.img-4.3.3+
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-4.3.3+ root=UUID=339197eb-781c-4a32-9265-060536dfa9e0 ro cgroup_enable=memory swapaccount=1 libata.force=1:3 quiet scsi_mod.use_blk_mq=1 dm_mod.use_blk_mq=1 no_console_suspend splash
-- resume
RESUME=/dev/mapper/SSHDCrypt-SWAP
-- /proc/filesystems
btrfs
ext3
ext4
fuseblk
vfat
-- lsmod
Module Size Used by
uas 20480 0
usb_storage 65536 1 uas
vhost_net 20480 5
vhost 32768 1 vhost_net
macvtap 20480 1 vhost_net
macvlan 24576 1 macvtap
tun 28672 11 vhost_net
ebtable_filter 16384 0
ebtables 36864 1 ebtable_filter
veth 16384 0
ctr 16384 2
ccm 20480 2
rfcomm 69632 2
binfmt_misc 20480 1
bnep 20480 2
bridge 114688 0
stp 16384 1 bridge
llc 16384 2 stp,bridge
ip6table_mangle 16384 0
ip6table_nat 16384 0
nf_nat_ipv6 16384 1 ip6table_nat
nf_log_ipv6 16384 2
nf_conntrack_ipv6 16384 5
nf_defrag_ipv6 36864 1 nf_conntrack_ipv6
ip6table_filter 16384 1
ip6_tables 28672 3 ip6table_filter,ip6table_mangle,ip6table_nat
xt_CHECKSUM 16384 2
iptable_mangle 16384 1
ipt_MASQUERADE 16384 1
nf_nat_masquerade_ipv4 16384 1 ipt_MASQUERADE
iptable_nat 16384 1
nf_nat_ipv4 16384 1 iptable_nat
nf_nat 24576 3 nf_nat_ipv4,nf_nat_ipv6,nf_nat_masquerade_ipv4
nf_log_ipv4 16384 2
nf_log_common 16384 2 nf_log_ipv4,nf_log_ipv6
xt_LOG 16384 4
xt_limit 16384 4
xt_tcpudp 16384 12
xt_mac 16384 6
nf_conntrack_ipv4 20480 9
nf_defrag_ipv4 16384 1 nf_conntrack_ipv4
xt_multiport 16384 4
xt_recent 20480 12
xt_addrtype 16384 9
xt_conntrack 16384 12
nf_conntrack 118784 7 nf_nat,nf_nat_ipv4,nf_nat_ipv6,xt_conntrack,nf_nat_masquerade_ipv4,nf_conntrack_ipv4,nf_conntrack_ipv6
iptable_filter 16384 1
ip_tables 28672 3 iptable_filter,iptable_mangle,iptable_nat
x_tables 36864 17 ip6table_filter,ip6table_mangle,xt_CHECKSUM,xt_recent,ip_tables,xt_tcpudp,ipt_MASQUERADE,xt_limit,xt_conntrack,xt_LOG,xt_mac,xt_multiport,iptable_filter,ebtables,iptable_mangle,ip6_tables,xt_addrtype
nls_utf8 16384 1
nls_cp437 20480 1
vfat 20480 1
fat 69632 1 vfat
fuse 90112 5
rtsx_usb_ms 20480 0
memstick 20480 1 rtsx_usb_ms
loop 28672 2
joydev 20480 0
mousedev 20480 0
iTCO_wdt 16384 0
iTCO_vendor_support 16384 1 iTCO_wdt
uvcvideo 86016 0
videobuf2_vmalloc 16384 1 uvcvideo
videobuf2_memops 16384 1 videobuf2_vmalloc
hid_sensor_accel_3d 16384 1
hid_sensor_magn_3d 16384 1
hid_sensor_gyro_3d 16384 0
videobuf2_core 49152 1 uvcvideo
hid_sensor_als 16384 1
hid_sensor_incl_3d 16384 0
hid_sensor_rotation 16384 0
v4l2_common 16384 1 videobuf2_core
hid_sensor_trigger 16384 12 hid_sensor_gyro_3d,hid_sensor_incl_3d,hid_sensor_accel_3d,hid_sensor_rotation,hid_sensor_als,hid_sensor_magn_3d
btusb 45056 0
industrialio_triggered_buffer 16384 6 hid_sensor_gyro_3d,hid_sensor_incl_3d,hid_sensor_accel_3d,hid_sensor_rotation,hid_sensor_als,hid_sensor_magn_3d
btrtl 16384 1 btusb
videodev 167936 3 uvcvideo,v4l2_common,videobuf2_core
kfifo_buf 16384 1 industrialio_triggered_buffer
coretemp 16384 0
btbcm 16384 1 btusb
industrialio 57344 12 hid_sensor_trigger,hid_sensor_gyro_3d,industrialio_triggered_buffer,hid_sensor_incl_3d,hid_sensor_accel_3d,hid_sensor_rotation,hid_sensor_als,kfifo_buf,hid_sensor_magn_3d
hwmon 16384 1 coretemp
btintel 16384 1 btusb
hid_sensor_iio_common 16384 7 hid_sensor_trigger,hid_sensor_gyro_3d,hid_sensor_incl_3d,hid_sensor_accel_3d,hid_sensor_rotation,hid_sensor_als,hid_sensor_magn_3d
intel_rapl 20480 0
iosf_mbi 16384 1 intel_rapl
media 24576 2 uvcvideo,videodev
hid_multitouch 20480 0
bluetooth 495616 29 bnep,btbcm,btrtl,btusb,rfcomm,btintel
x86_pkg_temp_thermal 16384 0
intel_powerclamp 16384 0
kvm_intel 163840 8
kvm 499712 1 kvm_intel
arc4 16384 2
rtl8723be 86016 0
btcoexist 49152 1 rtl8723be
rtl8723_common 24576 1 rtl8723be
rtl_pci 28672 1 rtl8723be
rtlwifi 73728 2 rtl_pci,rtl8723be
mac80211 622592 3 rtl_pci,rtlwifi,rtl8723be
snd_pcsp 16384 2
snd_hda_codec_hdmi 49152 1
snd_hda_codec_realtek 81920 1
psmouse 122880 0
nd_e820 16384 0
snd_hda_codec_generic 73728 1 snd_hda_codec_realtek
cfg80211 528384 2 mac80211,rtlwifi
serio_raw 16384 0
efivars 20480 0
snd_soc_rt5640 114688 0
libnvdimm 98304 1 nd_e820
snd_soc_rl6231 16384 1 snd_soc_rt5640
snd_hda_intel 36864 12
snd_soc_core 188416 1 snd_soc_rt5640
i2c_i801 24576 0
snd_hda_codec 131072 4 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel
ideapad_laptop 24576 0
snd_compress 20480 1 snd_soc_core
sg 32768 0
snd_hda_core 65536 5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
ac97_bus 16384 1 snd_soc_core
snd_pcm_dmaengine 16384 1 snd_soc_core
snd_hwdep 16384 1 snd_hda_codec
snd_pcm 102400 9 snd_soc_rt5640,snd_soc_core,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_pcsp,snd_pcm_dmaengine,snd_hda_core
regmap_i2c 16384 1 snd_soc_rt5640
elan_i2c 32768 0
snd_timer 32768 1 snd_pcm
sparse_keymap 16384 1 ideapad_laptop
snd 81920 38 snd_hda_codec_realtek,snd_soc_core,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_compress,snd_pcsp
dw_dmac 16384 0
8250_dw 16384 0
rfkill 24576 7 cfg80211,ideapad_laptop,bluetooth
lpc_ich 24576 0
battery 16384 0
dw_dmac_core 24576 1 dw_dmac
ac 16384 0
i2c_designware_platform 16384 0
soundcore 16384 1 snd
i2c_designware_core 16384 1 i2c_designware_platform
spi_pxa2xx_platform 24576 0
snd_soc_sst_acpi 16384 0
shpchp 36864 0
evdev 24576 22
soc_button_array 16384 0
mac_hid 16384 0
processor 36864 0
efivarfs 16384 1
ipv6 376832 101 ip6table_mangle,bridge,nf_defrag_ipv6,nf_nat_ipv6,nf_conntrack_ipv6
autofs4 40960 2
ext4 561152 3
crc16 16384 2 ext4,bluetooth
mbcache 20480 1 ext4
jbd2 102400 1 ext4
btrfs 925696 1
xor 24576 1 btrfs
raid6_pq 102400 1 btrfs
algif_skcipher 20480 0
af_alg 16384 1 algif_skcipher
dm_crypt 24576 2
dm_mod 106496 11 dm_crypt
hid_sensor_custom 20480 0
hid_sensor_hub 20480 9 hid_sensor_trigger,hid_sensor_gyro_3d,hid_sensor_incl_3d,hid_sensor_accel_3d,hid_sensor_rotation,hid_sensor_custom,hid_sensor_als,hid_sensor_magn_3d,hid_sensor_iio_common
sd_mod 36864 6
usbhid 49152 0
rtsx_usb_sdmmc 24576 0
rtsx_usb 24576 2 rtsx_usb_sdmmc,rtsx_usb_ms
crct10dif_pclmul 16384 0
crc32_pclmul 16384 0
crc32c_intel 24576 1
jitterentropy_rng 16384 0
sha256_ssse3 24576 1
sha256_generic 20480 1 sha256_ssse3
hmac 16384 1
drbg 24576 1
ansi_cprng 16384 0
aesni_intel 167936 8
aes_x86_64 20480 1 aesni_intel
lrw 16384 1 aesni_intel
gf128mul 16384 1 lrw
glue_helper 16384 1 aesni_intel
ablk_helper 16384 1 aesni_intel
cryptd 20480 4 aesni_intel,ablk_helper
ahci 36864 5
libahci 32768 1 ahci
i915 1110016 10
i2c_algo_bit 16384 1 i915
libata 229376 2 ahci,libahci
xhci_pci 16384 0
drm_kms_helper 131072 1 i915
ehci_pci 16384 0
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
fb_sys_fops 16384 1 drm_kms_helper
xhci_hcd 172032 1 xhci_pci
ehci_hcd 73728 1 ehci_pci
scsi_mod 229376 5 sg,uas,usb_storage,libata,sd_mod
usbcore 233472 10 uas,btusb,uvcvideo,rtsx_usb,usb_storage,ehci_hcd,ehci_pci,usbhid,xhci_hcd,xhci_pci
drm 348160 11 i915,drm_kms_helper
usb_common 16384 1 usbcore
fan 16384 0
thermal 20480 0
sdhci_acpi 16384 0
sdhci 45056 1 sdhci_acpi
video 32768 2 i915,ideapad_laptop
mmc_core 122880 3 sdhci,sdhci_acpi,rtsx_usb_sdmmc
gpio_lynxpoint 16384 0
i2c_hid 20480 0
hid 118784 4 i2c_hid,hid_multitouch,hid_sensor_hub,usbhid
i2c_core 57344 12 drm,i915,i2c_i801,snd_soc_rt5640,elan_i2c,i2c_hid,i2c_designware_platform,regmap_i2c,drm_kms_helper,i2c_algo_bit,v4l2_common,videodev
fjes 28672 0
button 16384 1 i915
-- /etc/initramfs-tools/modules
i915 modeset=1
-- /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
-- /etc/crypttab
sda7_crypt UUID=a1d51c69-c438-428b-8346-273abcbf5a52 none luks,discard
sdb_crypt UUID=8f7094e7-d2eb-453f-b2b7-1a162de14111 none luks,discard
-- mkinitramfs hooks
/etc/initramfs-tools/hooks/:
reiserfsprogs
/usr/share/initramfs-tools/hooks:
btrfs
busybox
cryptgnupg
cryptkeyctl
cryptopenct
cryptopensc
cryptpassdev
cryptroot
dmsetup
fsck
fuse
intel_microcode
keymap
klibc
kmod
lvm2
ntfs_3g
plymouth
resume
sg3-utils
thermal
udev
uswsusp
zz-busybox
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.3.3+ (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_IN.utf8, LC_CTYPE=en_IN.utf8 (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-15+b1
ii cpio 2.11+dfsg-4.1
ii klibc-utils 2.0.4-4
ii kmod 21-1
ii udev 228-2+b1
Versions of packages initramfs-tools recommends:
ii busybox 1:1.22.0-15+b1
Versions of packages initramfs-tools suggests:
ii bash-completion 1:2.1-4.2
-- no debconf information
Reply to: