mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-10-01 08:25:45 -04:00
improve output of remount-secure dracut module
This commit is contained in:
parent
c409e3221e
commit
33d97a2560
@ -11,14 +11,20 @@ remount_hook() {
|
||||
remount_action=$(getarg remountsecure)
|
||||
|
||||
if getargbool 1 remountnoexec; then
|
||||
remount-secure --remountnoexec
|
||||
if ! remount-secure --remountnoexec ; then
|
||||
warn "'remount-secure --remountnoexec' failed."
|
||||
fi
|
||||
return 0
|
||||
fi
|
||||
|
||||
if getargbool 1 remountsecure; then
|
||||
remount-secure
|
||||
if ! remount-secure ; then
|
||||
warn "'remount-secure' failed."
|
||||
fi
|
||||
return 0
|
||||
fi
|
||||
|
||||
warn "Not using remount-secure."
|
||||
}
|
||||
|
||||
remount_hook
|
||||
|
Loading…
Reference in New Issue
Block a user