mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-05-02 12:06:02 -04:00
use findmnt
This commit is contained in:
parent
1120d0652d
commit
d5cb7ecec9
2 changed files with 3 additions and 1 deletions
|
@ -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)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue