Bug#509637: initramfs-tools: shell variable `break' unset before `maybe_break init' is evaluated
Package: initramfs-tools
Version: 0.92m
Severity: normal
Tags: patch
The cmdline parameter `break=init' failed to work. It looks like the variable
`break' is unset before `maybe_break init' is evaluated.
-- Package-specific info:
-- /proc/cmdline
root=UUID=caad205c-96c5-4bd0-98a6-e12c9576c759 ro quiet vga=791
-- /proc/filesystems
cramfs
ext3
ntfs
fuseblk
-- lsmod
Module Size Used by
usbhid 51936 0
hid 53824 1 usbhid
ff_memless 9992 1 usbhid
nvidia 8110440 28
i2c_core 31520 1 nvidia
af_packet 24832 2
rfcomm 45216 0
l2cap 28032 5 rfcomm
ipv6 336872 12
acpi_cpufreq 12560 1
cpufreq_performance 6400 0
cpufreq_stats 9348 0
cpufreq_ondemand 12304 1
freq_table 9344 3 acpi_cpufreq,cpufreq_stats,cpufreq_ondemand
cpufreq_powersave 6272 0
cpufreq_conservative 12168 0
kvm_intel 51936 0
kvm 161008 1 kvm_intel
xt_state 6528 4
xt_length 6272 8
xt_conntrack 8960 2
ipt_LOG 10500 6
xt_limit 7172 7
xt_tcpudp 7680 17
iptable_mangle 7552 0
iptable_nat 10384 0
nf_nat 25112 1 iptable_nat
iptable_filter 7424 1
ip_tables 23440 3 iptable_mangle,iptable_nat,iptable_filter
x_tables 27656 8 xt_state,xt_length,xt_conntrack,ipt_LOG,xt_limit,xt_tcpudp,iptable_nat,ip_tables
nf_conntrack_ipv4 20504 9 iptable_nat,nf_nat
nf_conntrack 79136 5 xt_state,xt_conntrack,iptable_nat,nf_nat,nf_conntrack_ipv4
fuse 61632 1
nls_utf8 6144 1
ntfs 214272 1
nls_base 13572 2 nls_utf8,ntfs
sg 40032 0
sr_mod 21316 0
cdrom 42536 1 sr_mod
joydev 16128 0
uvcvideo 62984 0
btusb 17944 2
arc4 6272 2
compat_ioctl32 13824 1 uvcvideo
bluetooth 66596 7 rfcomm,l2cap,btusb
ecb 7296 2
crypto_blkcipher 23556 1 ecb
usb_storage 114240 0
videodev 42496 2 uvcvideo,compat_ioctl32
v4l1_compat 20100 2 uvcvideo,videodev
pata_acpi 9344 0
iwlagn 104068 0
snd_hda_intel 479024 1
iwlcore 101316 1 iwlagn
rtc_cmos 15160 0
ata_piix 25092 0
rtc_core 23364 1 rtc_cmos
snd_pcm 90248 1 snd_hda_intel
snd_page_alloc 13584 2 snd_hda_intel,snd_pcm
snd_hwdep 12808 1 snd_hda_intel
snd_seq 62048 0
tpm_infineon 14524 0
rfkill 15140 2 iwlcore
snd_timer 28304 2 snd_pcm,snd_seq
snd_seq_device 12180 1 snd_seq
pcspkr 7040 0
rtc_lib 7680 1 rtc_core
ata_generic 10244 0
serio_raw 10372 0
tpm 21184 1 tpm_infineon
mac80211 183848 2 iwlagn,iwlcore
psmouse 55592 0
r8169 40836 0
video 23956 5
iTCO_wdt 16592 0
iTCO_vendor_support 8452 1 iTCO_wdt
evdev 16032 8
snd 73544 8 snd_hda_intel,snd_pcm,snd_hwdep,snd_seq,snd_timer,snd_seq_device
cfg80211 32912 3 iwlagn,iwlcore,mac80211
output 7680 1 video
tpm_bios 11264 1 tpm
asus_laptop 22748 0
battery 11776 0
ac 8064 0
mii 10368 1 r8169
led_class 8968 2 iwlcore,asus_laptop
uhci_hcd 29216 0
button 11552 0
ehci_hcd 42892 0
intel_agp 34928 0
soundcore 12960 1 snd
usbcore 168848 7 usbhid,uvcvideo,btusb,usb_storage,uhci_hcd,ehci_hcd
ext3 142864 2
jbd 62760 1 ext3
mbcache 13572 1 ext3
sd_mod 34600 5
thermal 22816 0
processor 43576 4 acpi_cpufreq,thermal
fan 9480 0
ahci 38540 4
libata 192064 4 pata_acpi,ata_piix,ata_generic,ahci
scsi_mod 175864 5 sg,sr_mod,usb_storage,sd_mod,libata
dock 13984 1 libata
-- /etc/kernel-img.conf
# Kernel Image management overrides
# See kernel-img.conf(5) for details
do_symlinks = Yes
postinst_hook = /usr/sbin/update-grub
postrm_hook = /usr/sbin/update-grub
do_bootloader = no
do_initrd = Yes
relative_links = Yes
-- /etc/initramfs-tools/initramfs.conf
MODULES=dep
BUSYBOX=y
KEYMAP=n
BOOT=local
DEVICE=eth0
NFSROOT=auto
-- /etc/crypttab
# <target name> <source device> <key file> <options>
-- /sys/block
sda
sdb
sr0
-- System Information:
Debian Release: 5.0
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.27-9.slh.2-sidux-amd64 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages initramfs-tools depends on:
ii cpio 2.9-14 GNU cpio -- a program to manage ar
ii findutils 4.4.0-2 utilities for finding files--find,
ii klibc-utils 1.5.12-2 small utilities built with klibc f
ii module-init-tools 3.4-1 tools for managing Linux kernel mo
ii udev 0.125-7 /dev/ and hotplug management daemo
Versions of packages initramfs-tools recommends:
ii busybox 1:1.10.2-2 Tiny utilities for small and embed
initramfs-tools suggests no packages.
-- no debconf information
--- a/init
+++ b/init
@@ -208,6 +208,8 @@ if [ ! -x "${rootmnt}${init}" ]; then
panic "No init found. Try passing init= bootarg."
fi
+maybe_break init
+
# don't leak too much of env - some init(8) don't clear it
# (keep init, rootmnt)
unset debug
@@ -227,6 +229,5 @@ unset resume
unset resume_offset
# Chain to real filesystem
-maybe_break init
exec run-init ${rootmnt} ${init} "$@" <${rootmnt}/dev/console >${rootmnt}/dev/console
panic "Could not execute run-init."
Reply to: