mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-02-25 08:31:14 -05:00
fix
This commit is contained in:
parent
26826e8398
commit
f1da0ce746
@ -24,14 +24,14 @@ init() {
|
|||||||
$output_command "ERROR: must be run as root! sudo $0"
|
$output_command "ERROR: must be run as root! sudo $0"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
$output_command "START"
|
||||||
|
|
||||||
mkdir --parents "/run/remount-secure"
|
mkdir --parents "/run/remount-secure"
|
||||||
exit_code=0
|
exit_code=0
|
||||||
mount_output="$(mount)"
|
|
||||||
|
|
||||||
## Debugging.
|
## Debugging.
|
||||||
$output_command "INFO: mount_output:"
|
$output_command "INFO: 'findmnt --list' output at the START."
|
||||||
$output_command "$mount_output"
|
$output_command "$(findmnt --list)"
|
||||||
$output_command ""
|
$output_command ""
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -103,7 +103,7 @@ remount_secure() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if findmnt --noheadings "$mount_folder " >/dev/null ; then
|
if findmnt --noheadings "$mount_folder" >/dev/null ; then
|
||||||
$output_command "INFO: '$mount_folder' already mounted, therefore using remount."
|
$output_command "INFO: '$mount_folder' already mounted, therefore using remount."
|
||||||
$output_command INFO: Executing: mount --options "remount,${intended_mount_options}" "$mount_folder"
|
$output_command INFO: Executing: mount --options "remount,${intended_mount_options}" "$mount_folder"
|
||||||
mount --options "remount,${intended_mount_options}" "$mount_folder" || exit_code=100
|
mount --options "remount,${intended_mount_options}" "$mount_folder" || exit_code=100
|
||||||
@ -153,6 +153,9 @@ _home() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
end() {
|
end() {
|
||||||
|
## Debugging.
|
||||||
|
$output_command "INFO: 'findmnt --list' output at the END."
|
||||||
|
$output_command "$(findmnt --list)"
|
||||||
exit $exit_code
|
exit $exit_code
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user