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

Bug#409995: marked as done (mkinitramfs silently fails to create bootable initrd when PATH lacks /sbin)



Your message dated Tue, 10 Apr 2007 20:32:19 +0000
with message-id <E1HbN0l-0002lX-1w@ries.debian.org>
and subject line Bug#409995: fixed in initramfs-tools 0.86
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: initramfs-tools
Version: 0.85e


uname:  Linux hpde 2.6.18-3-amd64 #1 SMP Mon Dec 4 17:04:37 CET 2006
x86_64 GNU/Linux

When building my own kernel and running mkinitramfs manually as a
non-root user, I ran:

$ /usr/sbin/mkinitramfs -o initrd.img-2.6.18-3-telco-amd64
2.6.18-3-telco-amd64

The command completes with no apparent errors but produces an initrd.img
file with no modules and the resulting boot fails.  The problem occurs
in manual_add_modules in /usr/share/initramfs-tools/hook-functions:

        for mam_x in $(modprobe --set-version="${version}"
--ignore-install \
        --show-depends "${1}" 2>/dev/null | awk '/^insmod/ { print
$2 }'); do
   ...

The modprobe invocation fails (" -bash: modprobe: command not found"
when I try it from a shell prompt) because /sbin is not in my path, but
the error message is suppressed by the "2>/dev/null" and the loop just
doesn't process any modules.  I saw this my adding "set -x" to
mkinitramfs and comparing my bad run as a user to a successful run as
root.

(perhaps related to #409243, "fails to boot"?)

Perhaps the command could set its own path, or use full paths for
commands to make this a little more idiot-proof.

Thanks,
Bob Montgomery




--- 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 409995@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 ---

Reply to: