Bug#610700: initramfs-tools: settings from conf.d/* are not visible for hook scripts

2011-05-16 Thread maximilian attems
Hello,

On Fri, 21 Jan 2011, SZÉKELYI Szabolcs wrote:

> 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.

This is a misunderstanding.
mkinitramfs shouldn't be affeced by /etc/initramfs-tools/conf.d settings.
This dir is for stuff that may help on boot. It really lands into the
initramfs itself.

 
> 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.

stupid naming of aboves dir agreed,
but what you are trying to do is deprecated.
a packaged mkinitramfs script may change values in 
 /usr/share/initramfs-tools/conf-hooks.d/


kind regards

-- 
maks

 



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#610700: initramfs-tools: settings from conf.d/* are not visible for hook scripts

2011-01-21 Thread SZÉKELYI Szabolcs
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_utf81208  0 
nls_cp437   5817  0 
btrfs 375670  0 
zlib_deflate   17746  1 btrfs
crc32c  2560  1 
libcrc32c   1074  1 btrfs
ufs56474  0 
qnx46194  0 
hfsplus65270  0 
hfs37455  0 
minix  21197  0 
ntfs  162796  0 
vfat7884  0 
msdos   6202  0 
fat40038  2 vfat,msdos
jfs   140089  0 
xfs   436941  0 
exportfs3170  1 xfs
reiserfs  194156  0 
ext3  106518  0 
jbd37085  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 
bnep9427  2 
acpi_cpufreq5571  1 
rfcomm 29597  8 
cpufreq_userspace   1992  0 
cpufreq_stats   2659  0 
l2cap  24736  16 bnep,rfcomm
cpufreq_conservative 5162  0 
cpufreq_powersave902  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_generic25714  1 aes_x86_64
cbc 2539  197 
loop   11799  0 
firewire_sbp2  11514  0 
dm_crypt   10664  1 
snd_hda_codec_intelhdmi10695  1 
snd_hda_codec_idt  42481  1 
arc41274  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_pcm60503  2 snd_hda_intel,snd_hda_codec
iwlagn 73123  0 
snd_seq42881  0 
iwlcore77810  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
snd46446  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_i8017830  0 
btusb   9881  0 
hid_microsoft   2695  0 
v4l1_compat11442  2 uvcvideo,videodev
bluetooth  41827  7 sco,bnep,rfcomm,l2cap,btusb
mac80211  137340  2 iwlagn,iwlcore
v4l2_compat_ioctl32 8474  1 videodev
psmouse49777  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
parport27954  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 
hid63225  2 hid_microsoft,usbhid
ext4  289033  6 
mbcac