security-misc/usr/lib/dracut/modules.d/20remount-secure/remount-secure.sh

18 lines
317 B
Bash
Raw Normal View History

2023-10-22 08:10:48 -04:00
#!/bin/sh
## Copyright (C) 2023 - 2023 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
## See the file COPYING for copying conditions.
remount_hook() {
local remount_action
remount_action=$(getarg remountsecure)
if [ ! "$remount_action" = "yes" ]; then
return 0
fi
remount-secure
}
remount_hook