mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-12-27 12:59:26 -05:00
remount-secure dracut module: improve output
This commit is contained in:
parent
f70f36e6cf
commit
28cb53341d
@ -13,7 +13,9 @@ remount_hook() {
|
|||||||
if getargbool 1 remountnoexec; then
|
if getargbool 1 remountnoexec; then
|
||||||
if ! remount-secure --remountnoexec ; then
|
if ! remount-secure --remountnoexec ; then
|
||||||
warn "'remount-secure --remountnoexec' failed."
|
warn "'remount-secure --remountnoexec' failed."
|
||||||
|
return 1
|
||||||
fi
|
fi
|
||||||
|
info "'remount-secure --remountnoexec' success."
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -21,10 +23,12 @@ remount_hook() {
|
|||||||
if ! remount-secure ; then
|
if ! remount-secure ; then
|
||||||
warn "'remount-secure' failed."
|
warn "'remount-secure' failed."
|
||||||
fi
|
fi
|
||||||
|
info "'remount-secure' success."
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
warn "Not using remount-secure."
|
warn "Not using remount-secure."
|
||||||
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
remount_hook
|
remount_hook
|
||||||
|
Loading…
Reference in New Issue
Block a user