mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-10-01 08:25:45 -04:00
45 lines
957 B
Bash
Executable File
45 lines
957 B
Bash
Executable File
#!/bin/bash
|
|
|
|
## Copyright (C) 2023 - 2024 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
|
|
## See the file COPYING for copying conditions.
|
|
|
|
# called by dracut
|
|
check() {
|
|
## For debugging only.
|
|
## Saving space in initial ramdisk.
|
|
#require_binaries id || return 1
|
|
#require_binaries env || return 1
|
|
|
|
require_binaries findmnt || return 1
|
|
require_binaries touch || return 1
|
|
require_binaries grep || return 1
|
|
require_binaries mount || return 1
|
|
require_binaries remount-secure || return 1
|
|
return 0
|
|
}
|
|
|
|
# called by dracut
|
|
depends() {
|
|
return 0
|
|
}
|
|
|
|
# called by dracut
|
|
install() {
|
|
## For debugging only.
|
|
## Saving space in initial ramdisk.
|
|
#inst_multiple id
|
|
#inst_multiple env
|
|
|
|
inst_multiple findmnt
|
|
inst_multiple touch
|
|
inst_multiple grep
|
|
inst_multiple mount
|
|
inst_multiple remount-secure
|
|
inst_hook cleanup 90 "$moddir/remount-secure.sh"
|
|
}
|
|
|
|
# called by dracut
|
|
installkernel() {
|
|
return 0
|
|
}
|