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

Bug#719914: /scripts/init-bottom/udev: line 33: nuke: not found



Package: initramfs-tools
Version: 0.107
Severity: wishlist wheezy

(Orthogonal issues skipped for brevity.)  Upgrading from somewhat mixed
squeeze/wheezy-1 to clean wheezy.  Upgrading to lilo_1:22.8-8.3 (I
already knew it was needed) with no problems.  Upgrading to
linux-image-3.2.0-4-486_3.2.41-2 pulled initramfs-tools_0.109.1.  That's
where *it* hit first.  Copypasting symptom:

	update-initramfs: Generating /boot/initrd.img-2.6.32-5-486
	cp: invalid option -- 'n'
	Try `cp --help' for more information.

Successfuly fought some problems (I won't report them, not sure what had
happened) -- after upgrade to kmod_9-3 (and friends) I've faced this:

	$ zcat /boot/initrd.img-3.2.0-4-486 | cpio -t | grep 'bin/'
	sbin/modprobe
	sbin/rmmod
	sbin/udevadm
	sbin/udevd
	sbin/blkid
	bin/sh
	bin/busybox
	bin/kmod
	45043 blocks

In rescue shell I've found $Subject and (sorry for retyping, serial
console isn't at first place in my todo):

* Almost empty /dev . It had two entries:
  + console
  + null (which was plain file, 5 bytes long)
* In /bin busybox, kmod, and symlink sh
* In /sbin blkid, udevadm, udevd, and two symlinks modprobe and rmod

Just as listed above.

The problem is here (quoting relevant lines of
/usr/share/initramfs-tools/hooks/klibc of initramfs-tools_0.109.1):

    18  # klibc
    19  cp -pnL /usr/lib/klibc/bin/* ${DESTDIR}/bin
    20  cp -pL /lib/klibc-*.so ${DESTDIR}/lib

Pay attention to line #19 (it's not #33, as reported at runtime).
'--no-clobber' option of 'cp' has appeared in coreutils_7.1 (if my
reading of
http://git.savannah.gnu.org/cgit/coreutils.git/tree/NEWS?id=74ba433a14224c9cc77acc55eac568a5a8ab8c2c
is not mistaken).

p.s.  initramfs-tools people, you're free to close.  This is here just
to be googled.


Reply to: