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