]> git.ipfire.org Git - thirdparty/dracut.git/commit
base/init.sh: don't mount /run with noexec, if the initramfs lives there
authorHarald Hoyer <harald@redhat.com>
Thu, 14 Apr 2016 12:56:37 +0000 (14:56 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 14 Apr 2016 12:58:34 +0000 (14:58 +0200)
commitdb7d61cff7f5a5be3a56cff39dc278f004b9c461
tree02b34441f67af524fe5ca57dab4265375e07d562
parentb99e72427b517dea0d91d15fe43cf0a37420af36
base/init.sh: don't mount /run with noexec, if the initramfs lives there

If the initramfs was built with prefix=/run/... /run can't be mounted
with noexec, otherwise no binary can be run.

Guard against it by looking where /bin/sh is really located.
modules.d/99base/init.sh