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

Bug#608865: initramfs-tools: postinst fails if /tmp is mounted noexec



Package: initramfs-tools
Version: 0.98.7
Severity: normal


Installing initramfs-tools version 0.98.7 on squeeze (=debian testing) I get the following error messages:

/usr/sbin/mkinitramfs: 296: /tmp/mkinitramfs_6qmV4K/scripts/init-top/all_generic_ide: Permission denied
/usr/sbin/mkinitramfs: 296: /tmp/mkinitramfs_6qmV4K/scripts/init-top/blacklist: Permission denied
/usr/sbin/mkinitramfs: 296: /tmp/mkinitramfs_6qmV4K/scripts/init-top/keymap: Permission denied
/usr/sbin/mkinitramfs: 296: /tmp/mkinitramfs_6qmV4K/scripts/init-top/udev: Permission denied
/usr/sbin/mkinitramfs: 296: /tmp/mkinitramfs_6qmV4K/scripts/init-bottom/udev: Permission denied
/usr/sbin/mkinitramfs: 296: /tmp/mkinitramfs_6qmV4K/scripts/local-premount/resume: Permission denied
/usr/sbin/mkinitramfs: 296: /tmp/mkinitramfs_6qmV4K/scripts/local-bottom/cryptopensc: Permission denied
/usr/sbin/mkinitramfs: 296: /tmp/mkinitramfs_6qmV4K/scripts/local-top/cryptopensc: Permission denied
/usr/sbin/mkinitramfs: 296: /tmp/mkinitramfs_6qmV4K/scripts/local-top/cryptroot: Permission denied
/usr/sbin/mkinitramfs: 296: /tmp/mkinitramfs_6qmV4K/scripts/local-top/lvm2: Permission denied

->the postinst fails because /tmp is mounted noexec, and the script can't set the executable bit for the listed files
Found this thread which indicates that max@sro.at fixed the problem:
http://lists.debian.org/debian-kernel/2010/04/msg00481.html

I can work around this for now given the hints in the thread (I'll just point $TMPDIR to another director for the install), but would like to know if this will get fixed for final sqeeze? I'll definitely run into problems otherwise, as /tmp is set to noexec on all servers...

Many thanks in advance, and a happy new year 



Reply to: