Bug#576678: initramfs-tools: breaks but continues if /tmp is mounted with noexec option
On Tue, Apr 06, 2010 at 05:14:06PM +0200, Axel Beckert wrote:
> > guess to disable that feature on noexec /tmp and warn about it
> > is the way to go.
> Well, with /tmp or any other directory that would be used instead.
> (See below.)
yep, sure will do for 0.94.2 this evening after work.
> > > Feel free to clone this bug into two seperate bugs if you intend to
> > > fix both bugs.
> > >
> > > For 2) I suggest to allow the administrator to configure an
> > > alternative temporary directory to use. Another possibility would be
> > > to temporarily remount /tmp with exec. This is how I solved the issue
> > > manually for now, but doing this automatically with scripts feels like
> > > circumventing a possibly deliberately made decision of the local
> > > administrator.
> > thanks for pointing it out.
> > mkinitramfs uses TMPDIR, do you have that variable set?
> Just checked. It's not set. But I will try use that on the next kernel
> BTW: The information about mkinitramfs looking at $TMPDIR is missing in
> the mkinitramfs(8) man page. Looked there (mostly for commandline
> options) before reporting that bug. But even searching for "TMP" in
> there now didn't find any hint on that.
accepting patches ;)
see mkinitramfs.8 in topdir.