debugging

This commit is contained in:
Patrick Schleizer 2023-10-22 11:28:08 -04:00
parent 975a017dec
commit e7d30955e8
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -109,6 +109,15 @@ remount_secure() {
mount --options "remount,${intended_mount_options}" "$mount_folder" || exit_code=100 mount --options "remount,${intended_mount_options}" "$mount_folder" || exit_code=100
else else
$output_command "INFO: '$mount_folder' not yet mounted, therefore using mount bind." $output_command "INFO: '$mount_folder' not yet mounted, therefore using mount bind."
## Debugging.
ls "$mount_folder" /x >/dev/null || true
if test -d "$mount_folder" ; then
$output_command "INFO: '$mount_folder' folder exists: yes"
else
$output_command "INFO: '$mount_folder' folder exists: no"
fi
$output_command INFO: Executing: mount --options "$intended_mount_options" --bind "$mount_folder" "$mount_folder" $output_command INFO: Executing: mount --options "$intended_mount_options" --bind "$mount_folder" "$mount_folder"
mount --options "$intended_mount_options" --bind "$mount_folder" "$mount_folder" || exit_code=101 mount --options "$intended_mount_options" --bind "$mount_folder" "$mount_folder" || exit_code=101
fi fi