improve output of remount-secure dracut module

This commit is contained in:
Patrick Schleizer 2023-10-22 09:39:54 -04:00
parent c409e3221e
commit 33d97a2560
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -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