mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 02:42:56 +02:00
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
2 changed files with 6 additions and 4 deletions
|
@ -166,9 +166,11 @@ chmod 755 "${DESTDIR}"
|
||||||
|
|
||||||
# do not execute cache_run_scripts() if mounted with noexec
|
# do not execute cache_run_scripts() if mounted with noexec
|
||||||
NOEXEC=""
|
NOEXEC=""
|
||||||
fs=$(df -P $DESTDIR | tail -1 | awk '{print $6}')
|
if [ -r /etc/mtab ]; then
|
||||||
if [ -n "$fs" ] && mount | grep -q "on $fs .*noexec" ; then
|
fs=$(df -P $DESTDIR | tail -1 | awk '{print $6}')
|
||||||
NOEXEC=1
|
if [ -n "$fs" ] && mount | grep -q "on $fs .*noexec" ; then
|
||||||
|
NOEXEC=1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
__TMPCPIOGZ="$(mktemp ${TMPDIR:-/tmp}/mkinitramfs-OL_XXXXXX)" || exit 1
|
__TMPCPIOGZ="$(mktemp ${TMPDIR:-/tmp}/mkinitramfs-OL_XXXXXX)" || exit 1
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'initramfs-tools'
|
# Template file for 'initramfs-tools'
|
||||||
pkgname=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
|
_distver=0.98.8 # This should match debian version
|
||||||
version=${_localver}.${_distver}
|
version=${_localver}.${_distver}
|
||||||
build_style=custom-install
|
build_style=custom-install
|
||||||
|
|
Loading…
Add table
Reference in a new issue