Fix debug for mkdir in /mnt

This commit is contained in:
Eric Renfro 2024-08-01 16:34:00 -04:00
parent f1a06c7818
commit 0a16b493cb
Signed by: psi-jack
SSH key fingerprint: SHA256:1TKB8Z257L8EHK8GWNxKgMhD8a+FAR+f+j3nnlcuNVM

View file

@ -127,7 +127,8 @@ function create_subvolumes() {
subvols+=("@swap")
subvols+=("${!SUBVOLS_DEFAULT[@]}")
mkdir -p /mnt/btrfs
[[ ! -d /mnt/btrfs ]] && ${cmd} mkdir -p /mnt/btrfs
if [[ "$ENCRYPTION" ]]; then
${cmd} mount "/dev/mapper/luksvol" /mnt/btrfs
else
@ -140,6 +141,7 @@ function create_subvolumes() {
done
${cmd} umount /mnt/btrfs
${cmd} rmdir /mnt/btrfs
}
function get_hibernate_size() {
@ -157,7 +159,7 @@ function prepare_target() {
local cmd=""
fi
${cmd} mkdir /mnt/gentoo
[[ ! -d /mnt/gentoo ]] && ${cmd} mkdir /mnt/gentoo
if [[ "$ENCRYPTION" ]]; then
rootmount="/dev/mapper/luksvol"