Bug#610700: initramfs-tools: settings from conf.d/* are not visible for hook scripts
Package: initramfs-tools
Version: 0.98.7
Severity: normal
As far as I understand, /etc/initramfs-tools/conf.d is a directory to
configure intramfs-tools without touching the main configuration file
initramfs-tools.conf. But there's some inconsistency here: it looks to
me that only the settings from initramfs.conf are visible to hook
scripts, whereas those from conf.d/* are not.
It would be nice, for example, to check the BOOT setting from hook
scripts and skip growing the initramfs uselessly if the selected boot
method does not require some features. But currently this is not
possible if a value is assigned to BOOT via a file in conf.d.
-- Package-specific info:
-- initramfs sizes
-rw-r--r-- 1 root root 15M Jan 21 13:15 /boot/initrd.img-2.6.32-5-amd64
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-2.6.32-5-amd64 root=/dev/mapper/mranderson-root ro quiet
-- resume
RESUME=/dev/mapper/mranderson-swap_crypt
-- /proc/filesystems
ext4
fuseblk
ext2
ext3
reiserfs
xfs
jfs
msdos
vfat
ntfs
minix
hfs
hfsplus
qnx4
ufs
btrfs
-- lsmod
Module Size Used by
nls_utf8 1208 0
nls_cp437 5817 0
btrfs 375670 0
zlib_deflate 17746 1 btrfs
crc32c 2560 1
libcrc32c 1074 1 btrfs
ufs 56474 0
qnx4 6194 0
hfsplus 65270 0
hfs 37455 0
minix 21197 0
ntfs 162796 0
vfat 7884 0
msdos 6202 0
fat 40038 2 vfat,msdos
jfs 140089 0
xfs 436941 0
exportfs 3170 1 xfs
reiserfs 194156 0
ext3 106518 0
jbd 37085 1 ext3
ext2 52969 0
ecryptfs 79791 1
ip6table_filter 2384 0
ip6_tables 15075 1 ip6table_filter
iptable_filter 2258 0
ip_tables 13899 1 iptable_filter
ebtable_nat 1588 0
ebtables 13933 1 ebtable_nat
x_tables 12845 3 ip6_tables,ip_tables,ebtables
ppdev 5030 0
lp 7462 0
sco 7209 2
bnep 9427 2
acpi_cpufreq 5571 1
rfcomm 29597 8
cpufreq_userspace 1992 0
cpufreq_stats 2659 0
l2cap 24736 16 bnep,rfcomm
cpufreq_conservative 5162 0
cpufreq_powersave 902 0
kvm_intel 38146 0
uinput 6376 1
binfmt_misc 6431 1
kvm 214088 1 kvm_intel
fuse 50625 1
sha256_generic 8692 2
aes_x86_64 7340 200
aes_generic 25714 1 aes_x86_64
cbc 2539 197
loop 11799 0
firewire_sbp2 11514 0
dm_crypt 10664 1
snd_hda_codec_intelhdmi 10695 1
snd_hda_codec_idt 42481 1
arc4 1274 2
snd_hda_intel 20019 3
snd_hda_codec 54244 3 snd_hda_codec_intelhdmi,snd_hda_codec_idt,snd_hda_intel
ecb 1841 3
snd_hwdep 5380 1 snd_hda_codec
snd_pcm 60503 2 snd_hda_intel,snd_hda_codec
iwlagn 73123 0
snd_seq 42881 0
iwlcore 77810 1 iwlagn
snd_timer 15582 2 snd_pcm,snd_seq
uvcvideo 52063 0
snd_seq_device 4493 1 snd_seq
joydev 8459 0
videodev 29993 1 uvcvideo
snd 46446 15 snd_hda_codec_intelhdmi,snd_hda_codec_idt,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_seq,snd_timer,snd_seq_device
i2c_i801 7830 0
btusb 9881 0
hid_microsoft 2695 0
v4l1_compat 11442 2 uvcvideo,videodev
bluetooth 41827 7 sco,bnep,rfcomm,l2cap,btusb
mac80211 137340 2 iwlagn,iwlcore
v4l2_compat_ioctl32 8474 1 videodev
psmouse 49777 0
dell_laptop 1985 0
soundcore 4598 1 snd
cfg80211 101496 3 iwlagn,iwlcore,mac80211
parport_pc 18855 0
rfkill 13044 4 bluetooth,dell_laptop,cfg80211
snd_page_alloc 6249 2 snd_hda_intel,snd_pcm
dcdbas 5048 1 dell_laptop
parport 27954 3 ppdev,lp,parport_pc
serio_raw 3752 0
pcspkr 1699 0
container 2389 0
battery 4998 0
ac 2192 0
processor 29935 5 acpi_cpufreq
wmi 4323 0
evdev 7352 31
usbhid 33292 0
hid 63225 2 hid_microsoft,usbhid
ext4 289033 6
mbcache 5050 3 ext3,ext2,ext4
jbd2 67015 1 ext4
crc16 1319 2 l2cap,ext4
dm_mod 53754 24 dm_crypt
sg 18744 0
sr_mod 12602 0
sd_mod 29889 2
cdrom 29415 1 sr_mod
crc_t10dif 1276 1 sd_mod
i915 255262 2
drm_kms_helper 20065 1 i915
ahci 32374 1
ehci_hcd 31151 0
drm 142359 3 i915,drm_kms_helper
i2c_algo_bit 4225 1 i915
libata 133632 1 ahci
sdhci_pci 5581 0
sdhci 13966 1 sdhci_pci
firewire_ohci 19676 0
firewire_core 36848 2 firewire_sbp2,firewire_ohci
crc_itu_t 1307 1 firewire_core
scsi_mod 122149 5 firewire_sbp2,sg,sr_mod,sd_mod,libata
i2c_core 15712 6 videodev,i2c_i801,i915,drm_kms_helper,drm,i2c_algo_bit
video 17445 1 i915
mmc_core 45686 1 sdhci
led_class 2433 2 iwlcore,sdhci
usbcore 122034 5 uvcvideo,btusb,usbhid,ehci_hcd
nls_base 6377 9 nls_utf8,nls_cp437,hfsplus,hfs,ntfs,vfat,fat,jfs,usbcore
e1000e 110047 0
output 1692 1 video
thermal 11674 0
thermal_sys 11942 3 processor,video,thermal
button 4650 1 i915
-- /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
-- /etc/crypttab
mranderson-swap_crypt /dev/mapper/mranderson-swap /dev/urandom cipher=aes-cbc-essiv:sha256,size=256,swap
-- mkinitramfs hooks
/etc/initramfs-tools/hooks/:
/usr/share/initramfs-tools/hooks:
busybox
cryptgnupg
cryptopenct
cryptopensc
cryptpassdev
cryptroot
dmsetup
keymap
klibc
lvm2
plymouth
thermal
udev
-- System Information:
Debian Release: 6.0
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/4 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-6 GNU cpio -- a program to manage ar
ii findutils 4.4.2-1+b1 utilities for finding files--find,
ii klibc-utils 1.5.20-1 small utilities built with klibc f
ii module-init-tools 3.12-1 tools for managing Linux kernel mo
ii udev 164-4 /dev/ and hotplug management daemo
Versions of packages initramfs-tools recommends:
ii busybox 1:1.17.1-8 Tiny utilities for small and embed
Versions of packages initramfs-tools suggests:
ii bash-completion 1:1.2-3 programmable completion for the ba
-- no debconf information
Reply to: