Bug#929424: initramfs-tools: update-initramfs should not store temporary files on /boot
Package: initramfs-tools
Version: 0.133
Severity: normal
Dear Maintainer,
On systems with a small /boot volume, update-initramfs will frequently fail
with
pigz: abort: write error on <stdout> (No space left on device)
This hasn't been an issue so far, with a 200MB boot volume and a maximum of 2
kernels kept.
But now, I have encountered it on several systems that need a separate /boot
partition, on 2 different CPU architectures.
After the new initramfs is generated, it will fit on the small /boot without
problems.
This leads me to the conclusion that update-initramfs stores temporary files on
the volumes - I don't think it should do that.
Please make sure that uncompressed images, temporary files, etc. are stored on
a volume that does not have dire size constraints, such as /tmp or similar.
Thank you.
-- Package-specific info:
-- initramfs sizes
-rw-r--r-- 1 root root 52M May 2 17:16 /boot/initrd.img-4.19.0-4-amd64
-rw-r--r-- 1 root root 52M May 23 10:38 /boot/initrd.img-4.19.0-5-amd64
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-4.19.0-4-amd64 root=/dev/mapper/vg--packie-lv--debian2 ro quiet
-- resume
RESUME=/dev/mapper/vg--packie-lv--swap
-- /proc/filesystems
btrfs
ext3
ext2
ext4
fuseblk
xfs
jfs
msdos
vfat
ntfs
minix
hfs
hfsplus
qnx4
ufs
-- lsmod
Module Size Used by
vboxpci 28672 0
vboxnetadp 28672 0
vboxnetflt 32768 0
vboxdrv 491520 3 vboxpci,vboxnetadp,vboxnetflt
ufs 86016 0
qnx4 16384 0
hfsplus 114688 0
hfs 69632 0
minix 40960 0
ntfs 110592 0
vfat 24576 0
msdos 20480 0
fat 86016 2 msdos,vfat
jfs 208896 0
xfs 1458176 0
cpuid 16384 0
ctr 16384 0
ccm 20480 0
rfcomm 86016 16
fuse 122880 3
ipt_MASQUERADE 16384 1
nf_conntrack_netlink 49152 0
xfrm_user 45056 1
xfrm_algo 16384 1 xfrm_user
nft_counter 16384 15
nft_chain_nat_ipv4 16384 4
nf_nat_ipv4 16384 2 ipt_MASQUERADE,nft_chain_nat_ipv4
xt_addrtype 16384 1
nft_compat 20480 4
nf_tables 143360 45 nft_compat,nft_chain_nat_ipv4,nft_counter
nfnetlink 16384 4 nft_compat,nf_conntrack_netlink,nf_tables
xt_conntrack 16384 1
nf_nat 36864 1 nf_nat_ipv4
nf_conntrack 163840 5 xt_conntrack,nf_nat,ipt_MASQUERADE,nf_nat_ipv4,nf_conntrack_netlink
nf_defrag_ipv6 20480 1 nf_conntrack
nf_defrag_ipv4 16384 1 nf_conntrack
br_netfilter 24576 0
bridge 188416 1 br_netfilter
stp 16384 1 bridge
llc 16384 2 bridge,stp
pci_stub 16384 1
overlay 126976 0
bnep 24576 2
binfmt_misc 20480 1
hid_jabra 16384 0
snd_usb_audio 258048 2
snd_usbmidi_lib 36864 1 snd_usb_audio
ext4 733184 2
hid_generic 16384 0
snd_rawmidi 40960 1 snd_usbmidi_lib
mbcache 16384 1 ext4
snd_seq_device 16384 1 snd_rawmidi
jbd2 122880 1 ext4
fscrypto 32768 1 ext4
ecb 16384 0
btusb 53248 0
btrtl 16384 1 btusb
btbcm 16384 1 btusb
btintel 24576 1 btusb
usbhid 57344 0
bluetooth 643072 41 btrtl,btintel,btbcm,bnep,btusb,rfcomm
hid 139264 3 usbhid,hid_generic,hid_jabra
drbg 28672 1
uvcvideo 118784 0
ansi_cprng 16384 0
videobuf2_vmalloc 16384 1 uvcvideo
videobuf2_memops 16384 1 videobuf2_vmalloc
arc4 16384 2
videobuf2_v4l2 28672 1 uvcvideo
ecdh_generic 24576 1 bluetooth
crc16 16384 2 bluetooth,ext4
videobuf2_common 53248 2 videobuf2_v4l2,uvcvideo
intel_rapl 24576 0
x86_pkg_temp_thermal 16384 0
videodev 212992 3 videobuf2_v4l2,uvcvideo,videobuf2_common
intel_powerclamp 16384 0
mei_wdt 16384 0
media 45056 2 videodev,uvcvideo
coretemp 16384 0
kvm_intel 241664 0
iwlmvm 294912 0
mac80211 823296 1 iwlmvm
kvm 729088 1 kvm_intel
snd_hda_codec_realtek 118784 1
irqbypass 16384 1 kvm
crct10dif_pclmul 16384 0
snd_hda_codec_generic 86016 1 snd_hda_codec_realtek
crc32_pclmul 16384 0
snd_hda_codec_hdmi 57344 1
iwlwifi 241664 1 iwlmvm
ghash_clmulni_intel 16384 0
snd_hda_intel 45056 7
intel_cstate 16384 0
snd_hda_codec 151552 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
intel_uncore 135168 0
snd_hda_core 94208 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
intel_rapl_perf 16384 0
pcspkr 16384 0
snd_hwdep 16384 2 snd_usb_audio,snd_hda_codec
hp_wmi 16384 0
joydev 24576 0
sparse_keymap 16384 1 hp_wmi
iTCO_wdt 16384 0
snd_pcm 114688 5 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_hda_core
cfg80211 765952 3 iwlmvm,iwlwifi,mac80211
sg 36864 0
wmi_bmof 16384 0
tpm_infineon 20480 0
serio_raw 16384 0
iTCO_vendor_support 16384 1 iTCO_wdt
snd_timer 36864 1 snd_pcm
rtsx_pci_ms 20480 0
memstick 16384 1 rtsx_pci_ms
rfkill 28672 10 hp_wmi,bluetooth,cfg80211
snd 94208 30 snd_hda_codec_generic,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm,snd_rawmidi
mei_me 45056 1
soundcore 16384 1 snd
mei 118784 3 mei_wdt,mei_me
hp_accel 28672 0
lis3lv02d 24576 1 hp_accel
tpm_tis 16384 0
input_polldev 16384 1 lis3lv02d
tpm_tis_core 20480 1 tpm_tis
tpm 65536 3 tpm_tis,tpm_infineon,tpm_tis_core
evdev 28672 25
battery 24576 0
hp_wireless 16384 0
ac 16384 0
rng_core 16384 1 tpm
pcc_cpufreq 16384 0
parport_pc 32768 0
ppdev 20480 0
lp 20480 0
parport 57344 3 parport_pc,lp,ppdev
ip_tables 28672 0
x_tables 45056 5 xt_conntrack,nft_compat,ipt_MASQUERADE,xt_addrtype,ip_tables
autofs4 49152 2
btrfs 1384448 1
xor 24576 1 btrfs
zstd_decompress 81920 1 btrfs
zstd_compress 172032 1 btrfs
xxhash 16384 2 zstd_compress,zstd_decompress
raid6_pq 122880 1 btrfs
libcrc32c 16384 4 nf_conntrack,nf_nat,btrfs,xfs
crc32c_generic 16384 0
dm_mod 155648 11
sd_mod 61440 3
crc32c_intel 24576 4
i915 1728512 44
rtsx_pci_sdmmc 28672 0
ahci 40960 2
mmc_core 172032 1 rtsx_pci_sdmmc
libahci 40960 1 ahci
libata 278528 2 libahci,ahci
i2c_algo_bit 16384 1 i915
aesni_intel 200704 1
xhci_pci 16384 0
drm_kms_helper 204800 1 i915
aes_x86_64 20480 1 aesni_intel
crypto_simd 16384 1 aesni_intel
cryptd 28672 3 crypto_simd,ghash_clmulni_intel,aesni_intel
lpc_ich 28672 0
glue_helper 16384 1 aesni_intel
scsi_mod 249856 3 sd_mod,libata,sg
i2c_i801 28672 0
drm 483328 23 drm_kms_helper,i915
psmouse 172032 0
ehci_pci 16384 0
xhci_hcd 266240 1 xhci_pci
ehci_hcd 94208 1 ehci_pci
rtsx_pci 73728 2 rtsx_pci_sdmmc,rtsx_pci_ms
e1000e 282624 0
usbcore 290816 9 xhci_hcd,ehci_pci,snd_usb_audio,usbhid,snd_usbmidi_lib,uvcvideo,ehci_hcd,btusb,xhci_pci
usb_common 16384 1 usbcore
thermal 20480 0
wmi 28672 2 hp_wmi,wmi_bmof
video 45056 1 i915
button 16384 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=auto
KEYMAP=n
COMPRESS=gzip
DEVICE=
NFSROOT=auto
RUNSIZE=10%
-- /etc/initramfs-tools/update-initramfs.conf
update_initramfs=yes
backup_initramfs=no
-- mkinitramfs hooks
/etc/initramfs-tools/hooks/:
/usr/share/initramfs-tools/hooks:
amd64_microcode
btrfs
dmsetup
fsck
fuse
intel_microcode
keymap
klibc-utils
kmod
lvm2
ntfs_3g
plymouth
resume
thermal
thin-provisioning-tools
udev
zz-busybox
-- System Information:
Debian Release: 10.0
APT prefers testing-debug
APT policy: (500, 'testing-debug'), (500, 'testing'), (500, 'stable'), (100, 'unstable-debug'), (100, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.19.0-4-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages initramfs-tools depends on:
ii initramfs-tools-core 0.133
ii linux-base 4.6
initramfs-tools recommends no packages.
Versions of packages initramfs-tools suggests:
ii bash-completion 1:2.8-6
-- no debconf information
Reply to: