--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: initramfs-tools: Please add a check in mkinitramfs to stop script names causing panics.
- From: Tim Phipps <tim@phipps-hutton.freeserve.co.uk>
- Date: Tue, 18 Jul 2006 12:02:37 +0100
- Message-id: <20060718110237.13953.10284.reportbug@hal.phipps-hutton>
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
--- End Message ---
--- Begin Message ---
Source: initramfs-tools
Source-Version: 0.86
We believe that the bug you reported is fixed in the latest version of
initramfs-tools, which is due to be installed in the Debian FTP archive:
initramfs-tools_0.86.dsc
to pool/main/i/initramfs-tools/initramfs-tools_0.86.dsc
initramfs-tools_0.86.tar.gz
to pool/main/i/initramfs-tools/initramfs-tools_0.86.tar.gz
initramfs-tools_0.86_all.deb
to pool/main/i/initramfs-tools/initramfs-tools_0.86_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 378682@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
maximilian attems <maks@debian.org> (supplier of updated initramfs-tools package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Tue, 10 Apr 2007 21:45:36 +0200
Source: initramfs-tools
Binary: initramfs-tools
Architecture: source all
Version: 0.86
Distribution: unstable
Urgency: low
Maintainer: Debian kernel team <debian-kernel@lists.debian.org>
Changed-By: maximilian attems <maks@debian.org>
Description:
initramfs-tools - tools for generating an initramfs
Closes: 378682 398347 403905 406107 409995 414640
Changes:
initramfs-tools (0.86) unstable; urgency=low
.
* update-initramfs: Bound the mode and version variable. (closes: 403905)
.
* init: Set once the MODPROBE_OPTIONS environment variable and export it.
Don't forget to set -b to have the modprobe.d blacklists respected.
Thus remove everywhere the -q modprobe switch.
Thanks Ben Collins <bcollins@ubuntu.com> for the suggestion.
.
* small trailing whitespace cleanup, display full path of kernel-img.conf
in bug script.
.
* debian/control: Add busybox-initramfs as Ubuntu busybox alternative
to depends. Drop the sarge busybox-cvs-static entry.
.
* scripts/local-top/mdrun: Drop, existed for partial upgrades from sarge.
.
* scripts/local: Improve panic message and printed order. (closes: 414640)
Thanks Vincent.McIntyre@csiro.au for patch.
.
* scripts/functions: Check if panic is set before using it. (closes: 406107)
Thanks martin f krafft <madduck@debian.org> for report.
.
* hook-functions: Copy all kernel/drivers/{block,ide,scsi} subdir modules
instead of hardcoding the list of "supported" drivers. As consequence
the initramfs might be larger, but none of those should be missed!
As bonus syncs with Ubuntu.
.
* init: Mount /sys and /proc nodev, noexec, nosuid - Ubuntu sync.
.
* update-initramfs: If update-initramfs fails, restore the backup.
Useful if a MINKVER set is not fulfilled. (LP: #101844)
Thanks Soren Hansen <sh@linux2go.dk> for patch.
.
* initramfs-tools.preinst: Test if $RESUME is nonzero, not if it exists,
fixes issue of UUID resume dev. (LP: #67932) While there remove the
conffile mv handling of 0.61.
.
* scripts/functions: set_initlist() needs to add only script names with
alphabetics, numerics and underscores - skip any other. Bad enough
backup scripts get added, but they shouldn't lead to a panic. Also skip
directories that might lay around. (closes: 398347) (LP: #76131)
.
* initramfs-tools.8: Document valid script names.
.
* mkinitramfs: Don't add backup scripts to initramfs. (closes: 378682)
(LP: #78348)
.
* scripts/functions: run_scripts() return immediately if passed dir
does not exist. Empty dirs without boot script aren't created anymore.
.
* debian/copyright: Update my email, add Ben Collins, update years,
alphabetic authors sort + add new git tree location.
.
* mkinitramfs: Set PATH with /sbin to allow non-root user usage.
Thanks Bob Montgomery <bob.montgomery@hp.com> for the suggestion.
(closes: 409995)
Files:
39e70461ad299041d35e5706d785b5e3 619 utils optional initramfs-tools_0.86.dsc
29cb664dc9897f4a6374e03ce91e324f 56019 utils optional initramfs-tools_0.86.tar.gz
c321db546d0cd7315b2655126b64708c 62828 utils optional initramfs-tools_0.86_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFGG+mteW7Lc5tEHqgRAuhLAKCwJDvvumth4bfgIpAxHP26tfqS+gCeLYZa
OOefMVdSvAK7dJtC13tDVNk=
=XTYH
-----END PGP SIGNATURE-----
--- End Message ---