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

Bug#768913: /etc/kernel/postinst.d/initramfs-tools: fragile PATH dependency



Package: initramfs-tools
Version: 0.109.1
Severity: normal
File: /etc/kernel/postinst.d/initramfs-tools

The script /etc/kernel/postinst.d/initramfs-tools checks for the existence
of /usr/sbin/update-initramfs using an absolute path, but later invokes it
without any path. Among other possible dangers, this causes problems when
/usr/sbin is not in one's PATH.

I discovered this when trying to build a kernel with kernel-package,
fakeroot, and zsh (which by default does not include /usr/sbin in PATH for
ordinary users).


-- Package-specific info:
-- initramfs sizes
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.2.0-4-686-pae root=/dev/mapper/host-root ro quiet

-- resume
RESUME=/dev/mapper/host-swap_1
-- /proc/filesystems
	ext4
	ext2

-- lsmod
Module                  Size  Used by
nfsd                  173901  2 
nfs                   265953  0 
nfs_acl                12463  2 nfs,nfsd
auth_rpcgss            32143  2 nfs,nfsd
fscache                31978  1 nfs
lockd                  61373  2 nfs,nfsd
sunrpc                143904  6 lockd,auth_rpcgss,nfs_acl,nfs,nfsd
ext2                   49826  1 
loop                   17810  0 
snd_hda_intel          21786  0 
snd_hda_codec          63477  1 snd_hda_intel
snd_hwdep              12943  1 snd_hda_codec
i2c_piix4              12480  0 
snd_pcm                53461  2 snd_hda_intel,snd_hda_codec
snd_page_alloc         12867  2 snd_pcm,snd_hda_intel
virtio_balloon         12720  0 
psmouse                59609  0 
virtio_console         17883  0 
processor              27565  0 
thermal_sys            17752  1 processor
pcspkr                 12515  0 
evdev                  17225  2 
snd_timer              22356  1 snd_pcm
snd                    42761  5 snd_timer,snd_pcm,snd_hda_intel,snd_hwdep,snd_hda_codec
soundcore              12921  1 snd
joydev                 17010  0 
i2c_core               19116  1 i2c_piix4
serio_raw              12803  0 
button                 12817  0 
ext4                  306996  5 
crc16                  12327  1 ext4
jbd2                   56426  1 ext4
mbcache                12938  2 ext4,ext2
usbhid                 31554  0 
hid                    64284  1 usbhid
dm_mod                 57386  18 
sg                     21476  0 
sr_mod                 17468  0 
cdrom                  34813  1 sr_mod
ata_generic            12439  0 
virtio_blk             12754  3 
floppy                 48125  0 
virtio_net             17527  0 
ata_piix               25271  0 
libata                125014  2 ata_piix,ata_generic
scsi_mod              135081  3 libata,sr_mod,sg
uhci_hcd               22337  0 
ehci_hcd               39631  0 
virtio_pci             13015  0 
virtio_ring            12988  5 virtio_pci,virtio_net,virtio_blk,virtio_console,virtio_balloon
virtio                 12933  6 virtio_ring,virtio_pci,virtio_net,virtio_blk,virtio_console,virtio_balloon
usbcore               104555  4 ehci_hcd,uhci_hcd,usbhid
usb_common             12338  1 usbcore

-- /etc/initramfs-tools/modules

-- /etc/kernel-img.conf
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
do_bootloader = no
do_initrd = yes
link_in_boot = no

-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=n
COMPRESS=gzip
DEVICE=
NFSROOT=auto

-- /etc/initramfs-tools/update-initramfs.conf
update_initramfs=yes
backup_initramfs=no

-- mkinitramfs hooks
/etc/initramfs-tools/hooks/:

/usr/share/initramfs-tools/hooks:
busybox
dmsetup
keymap
klibc
kmod
lvm2
thermal
udev


-- System Information:
Debian Release: 7.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages initramfs-tools depends on:
ii  cpio               2.11+dfsg-0.1
ii  klibc-utils        2.0.1-3.1
ii  kmod               9-3
ii  module-init-tools  9-3
ii  udev               175-7.2

Versions of packages initramfs-tools recommends:
ii  busybox  1:1.20.0-7

Versions of packages initramfs-tools suggests:
ii  bash-completion  1:2.0-1

-- no debconf information


Reply to: