mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-10-01 08:25:45 -04:00
use findmnt
This commit is contained in:
parent
1120d0652d
commit
d5cb7ecec9
@ -79,7 +79,7 @@ remount_secure() {
|
||||
## example status_file_full_path:
|
||||
## /run/remount-secure/_home
|
||||
|
||||
mount_line_of_mount_folder="$(echo "$mount_output" | grep "$mount_folder ")" || true
|
||||
mount_line_of_mount_folder="$(findmnt --noheadings "$mount_folder")" || true
|
||||
|
||||
if echo "$mount_line_of_mount_folder" | grep --quiet "$new_mount_options" ; then
|
||||
$output_command "INFO: $mount_folder has already intended mount options. ($new_mount_options)"
|
||||
|
@ -5,6 +5,7 @@
|
||||
|
||||
# called by dracut
|
||||
check() {
|
||||
require_binaries findmnt || return 1
|
||||
require_binaries touch || return 1
|
||||
require_binaries grep || return 1
|
||||
require_binaries id || return 1
|
||||
@ -20,6 +21,7 @@ depends() {
|
||||
|
||||
# called by dracut
|
||||
install() {
|
||||
inst_multiple findmnt
|
||||
inst_multiple touch
|
||||
inst_multiple grep
|
||||
inst_multiple id
|
||||
|
Loading…
Reference in New Issue
Block a user