initramfs-tools: make the test for NOEXEC depend on /etc/mtab again, to avoid a warning.
This commit is contained in:
parent
232822b609
commit
ecbc26168d
|
@ -166,9 +166,11 @@ chmod 755 "${DESTDIR}"
|
|||
|
||||
# do not execute cache_run_scripts() if mounted with noexec
|
||||
NOEXEC=""
|
||||
fs=$(df -P $DESTDIR | tail -1 | awk '{print $6}')
|
||||
if [ -n "$fs" ] && mount | grep -q "on $fs .*noexec" ; then
|
||||
NOEXEC=1
|
||||
if [ -r /etc/mtab ]; then
|
||||
fs=$(df -P $DESTDIR | tail -1 | awk '{print $6}')
|
||||
if [ -n "$fs" ] && mount | grep -q "on $fs .*noexec" ; then
|
||||
NOEXEC=1
|
||||
fi
|
||||
fi
|
||||
|
||||
__TMPCPIOGZ="$(mktemp ${TMPDIR:-/tmp}/mkinitramfs-OL_XXXXXX)" || exit 1
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'initramfs-tools'
|
||||
pkgname=initramfs-tools
|
||||
_localver=0.99.8.1 # This is the XBPS version
|
||||
_localver=0.99.8.2 # This is the XBPS version
|
||||
_distver=0.98.8 # This should match debian version
|
||||
version=${_localver}.${_distver}
|
||||
build_style=custom-install
|
||||
|
|
Loading…
Reference in New Issue