remount-secure dracut module: improve output

This commit is contained in:
Patrick Schleizer 2023-10-22 13:11:44 -04:00
parent f70f36e6cf
commit 28cb53341d
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -13,7 +13,9 @@ remount_hook() {
if getargbool 1 remountnoexec; then
if ! remount-secure --remountnoexec ; then
warn "'remount-secure --remountnoexec' failed."
return 1
fi
info "'remount-secure --remountnoexec' success."
return 0
fi
@ -21,10 +23,12 @@ remount_hook() {
if ! remount-secure ; then
warn "'remount-secure' failed."
fi
info "'remount-secure' success."
return 0
fi
warn "Not using remount-secure."
return 1
}
remount_hook