[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#379212: initramfs-tools: update-initramfs Fails to pass the options to /usr/sbin/mkinitramfs when -v is specified



Package: initramfs-tools
Version: 0.70b
Severity: normal
Tags: patch

When the -v option is passed to update-initramfs then it fails
with these error messages:

> Warp:/# update-initramfs -u -v -t -k 2.4.27-2-686
> update-initramfs: Generating /boot/initrd.img-2.4.27-2-686
> /usr/sbin/mkinitramfs: invalid option --
> /usr/sbin/mkinitramfs: invalid option -- -
> Terminating...
> mkinitramfs failed for /boot/initrd.img-2.4.27-2-686

Everything is ok when the -v option is not passed:

> Warp:/# update-initramfs -u -t -k 2.4.27-2-686
> update-initramfs: Generating /boot/initrd.img-2.4.27-2-686
> W: kernel 2.4.27-2-686 too old for initramfs on i386
> W: not generating requested initramfs for kernel 2.4.27-2-686

This happens because the options to mkinitramfs are passed as
one option because of the double quotes around the ${OPTS} at
line 71 of update-initramfs.


-- Package-specific info:
-- /proc/cmdline
root=/dev/hda3 ro 

-- /proc/filesystems
	cramfs
	ext3

-- lsmod
Module                  Size  Used by
binfmt_misc            11048  1 
ipv6                  221760  19 
nfsd                  196612  13 
exportfs                5504  1 nfsd
lockd                  53256  2 nfsd
nfs_acl                 3552  1 nfsd
sunrpc                137884  9 nfsd,lockd,nfs_acl
button                  6544  0 
ac                      4836  0 
battery                 9188  0 
dm_mod                 49976  0 
ide_generic             1376  0 [permanent]
snd_cmipci             31296  1 
gameport               14344  1 snd_cmipci
shpchp                 34272  0 
snd_pcm_oss            35936  0 
snd_mixer_oss          15872  1 snd_pcm_oss
snd_pcm                74500  2 snd_cmipci,snd_pcm_oss
snd_page_alloc          9512  1 snd_pcm
snd_opl3_lib            9824  1 snd_cmipci
snd_timer              20836  2 snd_pcm,snd_opl3_lib
snd_hwdep               8676  1 snd_opl3_lib
snd_mpu401_uart         7520  1 snd_cmipci
snd_rawmidi            22560  1 snd_mpu401_uart
snd_seq_device          7756  2 snd_opl3_lib,snd_rawmidi
snd                    48100  12 snd_cmipci,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_opl3_lib,snd_timer,snd_hwdep,snd_mpu401_uart,snd_rawmidi,snd_seq_device
via_agp                 9632  1 
agpgart                29864  1 via_agp
pci_hotplug            27196  1 shpchp
mousedev               10788  1 
tsdev                   7392  0 
parport_pc             32132  0 
parport                33160  1 parport_pc
evdev                   9088  2 
psmouse                34600  0 
i2c_viapro              8148  0 
floppy                 54276  0 
serio_raw               6596  0 
i2c_core               19520  1 i2c_viapro
pcspkr                  3040  0 
soundcore               9216  1 snd
8250_pnp                8704  0 
rtc                    12340  0 
ext3                  118152  2 
jbd                    50260  1 ext3
mbcache                 8324  1 ext3
ide_cd                 35680  0 
cdrom                  32448  1 ide_cd
ide_disk               15072  5 
generic                 4420  0 [permanent]
usbhid                 35520  0 
via82cxxx               8260  0 [permanent]
ide_core              110888  5 ide_generic,ide_cd,ide_disk,generic,via82cxxx
uhci_hcd               20392  0 
8139too                24800  0 
8139cp                 20576  0 
usbcore               111616  3 usbhid,uhci_hcd
mii                     5312  2 8139too,8139cp
thermal                12904  0 
processor              25512  1 thermal
fan                     4516  0 


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-1-686
Locale: LANG=el_GR.UTF-8, LC_CTYPE=el_GR.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-16     GNU cpio -- a program to manage ar
ii  klibc-utils                   1.4.11-2   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
--- update-initramfs.orig	2006-07-16 22:46:01.000000000 +0300
+++ update-initramfs	2006-07-22 12:09:32.000000000 +0300
@@ -68,7 +68,7 @@
 	if [ "${verbose}" = 1 ]; then
 		OPTS="-v $OPTS"
 	fi
-	if mkinitramfs "${OPTS}" "${initramfs}" "${version}"; then
+	if mkinitramfs ${OPTS} "${initramfs}" "${version}"; then
 		set_sha1
 	else
 		mkinitramfs_return="$?"

Reply to: