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+=("@swap")
|
||||||
subvols+=("${!SUBVOLS_DEFAULT[@]}")
|
subvols+=("${!SUBVOLS_DEFAULT[@]}")
|
||||||
|
|
||||||
mkdir -p /mnt/btrfs
|
[[ ! -d /mnt/btrfs ]] && ${cmd} mkdir -p /mnt/btrfs
|
||||||
|
|
||||||
if [[ "$ENCRYPTION" ]]; then
|
if [[ "$ENCRYPTION" ]]; then
|
||||||
${cmd} mount "/dev/mapper/luksvol" /mnt/btrfs
|
${cmd} mount "/dev/mapper/luksvol" /mnt/btrfs
|
||||||
else
|
else
|
||||||
|
@ -140,6 +141,7 @@ function create_subvolumes() {
|
||||||
done
|
done
|
||||||
|
|
||||||
${cmd} umount /mnt/btrfs
|
${cmd} umount /mnt/btrfs
|
||||||
|
${cmd} rmdir /mnt/btrfs
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_hibernate_size() {
|
function get_hibernate_size() {
|
||||||
|
@ -157,7 +159,7 @@ function prepare_target() {
|
||||||
local cmd=""
|
local cmd=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${cmd} mkdir /mnt/gentoo
|
[[ ! -d /mnt/gentoo ]] && ${cmd} mkdir /mnt/gentoo
|
||||||
|
|
||||||
if [[ "$ENCRYPTION" ]]; then
|
if [[ "$ENCRYPTION" ]]; then
|
||||||
rootmount="/dev/mapper/luksvol"
|
rootmount="/dev/mapper/luksvol"
|
||||||
|
|
Loading…
Reference in a new issue