Bug#378682: initramfs-tools: Please add a check in mkinitramfs to stop script names causing panics.
Package: initramfs-tools
Version: 0.69b
Severity: normal
I created a script called /etc/initramfs-tools/scripts/nfs-bottom/retry-nfs.
There were plenty of hyphens in the path leading to script name so I
didn't think the name would be a problem. Imagine my suprise when I
rebooted and got some cryptic messages and a "PANIC: Circular
dependency".
I turns out that the *_prereqs functions use the script names to
construct varaibles so these script names must only contain [a-x0-9_].
That's fine and I don't want you to include Perl so that it can handle
any script name but could you add a check to mkinitramfs so that it
aborts if you have any bad script names?
-- Package-specific info:
-- /proc/cmdline
NAME=hal 2 boot=local root=LABEL=root
-- /proc/filesystems
cramfs
ext3
ntfs
-- lsmod
Module Size Used by
savage 31072 1
drm 64532 2 savage
nfsd 206564 13
exportfs 5184 1 nfsd
ipv6 221696 38
button 6448 0
ac 4676 0
battery 9412 0
nls_iso8859_1 3936 0
ntfs 187984 0
autofs4 16804 2
dm_mod 51160 0
eth1394 18344 0
snd_seq_dummy 3556 0
snd_seq_oss 28896 0
snd_seq_midi 8384 0
snd_seq_midi_event 6368 2 snd_seq_oss,snd_seq_midi
snd_seq 44432 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
shpchp 39712 0
pci_hotplug 24756 1 shpchp
psmouse 32356 0
snd_via82xx 25688 0
gameport 13928 1 snd_via82xx
snd_ac97_codec 82464 1 snd_via82xx
snd_ac97_bus 2048 1 snd_ac97_codec
floppy 54628 0
snd_pcm_oss 45536 0
snd_mixer_oss 16448 1 snd_pcm_oss
snd_pcm 77576 3 snd_via82xx,snd_ac97_codec,snd_pcm_oss
snd_timer 21316 2 snd_seq,snd_pcm
snd_page_alloc 9928 2 snd_via82xx,snd_pcm
snd_mpu401_uart 6592 1 snd_via82xx
snd_rawmidi 22240 2 snd_seq_midi,snd_mpu401_uart
snd_seq_device 7916 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq,snd_rawmidi
snd 48420 11 snd_seq_oss,snd_seq,snd_via82xx,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
cx88_blackbird 18428 0
i2c_viapro 7924 0
soundcore 8928 1 snd
cx88_dvb 9508 1
cx8802 10628 2 cx88_blackbird,cx88_dvb
mt352 5924 1 cx88_dvb
or51132 8996 1 cx88_dvb
video_buf_dvb 5924 1 cx88_dvb
dvb_core 71624 1 video_buf_dvb
nxt200x 11940 1 cx88_dvb
firmware_class 9696 3 cx88_blackbird,or51132,nxt200x
via_agp 9280 1
lgdt330x 7228 1 cx88_dvb
cx22702 5636 1 cx88_dvb
dvb_pll 10532 4 cx88_dvb,or51132,nxt200x,cx22702
agpgart 31400 2 drm,via_agp
via_ircc 22708 0
cx8800 29452 1 cx88_blackbird
cx88xx 58368 4 cx88_blackbird,cx88_dvb,cx8802,cx8800
i2c_algo_bit 8296 1 cx88xx
video_buf 19748 6 cx88_blackbird,cx88_dvb,cx8802,video_buf_dvb,cx8800,cx88xx
ir_common 9188 1 cx88xx
irda 162300 1 via_ircc
tveeprom 13744 1 cx88xx
i2c_core 19280 10 i2c_viapro,cx88_dvb,mt352,or51132,nxt200x,lgdt330x,cx22702,cx88xx,i2c_algo_bit,tveeprom
ehci_hcd 28904 0
crc_ccitt 1952 1 irda
v4l1_compat 12516 1 cx8800
v4l2_common 5632 1 cx8800
btcx_risc 4520 3 cx8802,cx8800,cx88xx
videodev 8768 3 cx88_blackbird,cx8800,cx88xx
ohci1394 30164 0
ieee1394 88152 2 eth1394,ohci1394
rtc 11316 0
serio_raw 6468 0
pcspkr 1668 0
ide_cd 36484 0
cdrom 33280 1 ide_cd
joydev 8864 0
evdev 8800 1
mousedev 10496 1
thermal 13416 0
processor 22912 1 thermal
fan 4580 0
via_rhine 20900 0
mii 5056 1 via_rhine
ide_disk 15712 6
via82cxxx 8164 0 [permanent]
ide_core 112800 3 ide_cd,ide_disk,via82cxxx
usbhid 32320 0
uhci_hcd 28016 0
usbcore 113284 4 ehci_hcd,usbhid,uhci_hcd
nfs 192904 0
lockd 55176 3 nfsd,nfs
nfs_acl 3296 2 nfsd,nfs
sunrpc 133404 10 nfsd,nfs,lockd,nfs_acl
ext3 117768 3
jbd 48404 1 ext3
mbcache 8484 1 ext3
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Versions of packages initramfs-tools depends on:
ii busybox 1:1.1.3-2 Tiny utilities for small and embed
ii cpio 2.6-15 GNU cpio -- a program to manage ar
ii klibc-utils 1.4.8-1 small statically-linked utilities
ii module-init-tools 3.2.2-3 tools for managing Linux kernel mo
ii udev 0.093-1 /dev/ and hotplug management daemo
initramfs-tools recommends no packages.
-- no debconf information
Reply to: