Fix debug for mkdir in /mnt
This commit is contained in:
parent
f1a06c7818
commit
0a16b493cb
1 changed files with 4 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue