mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-06-07 20:42:39 -04:00
improve output of remount-secure dracut module
This commit is contained in:
parent
c409e3221e
commit
33d97a2560
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue