Bind mount workdir

This commit is contained in:
Dennis ten Hoove 2024-05-02 08:46:52 +02:00
parent 15bb611ee8
commit 544d7d0da8

View file

@ -153,6 +153,7 @@ if [[ $type == 'archlinux' ]]; then
# Create temporary Btrfs subvolume
printf "\e[1;34m-->\e[0m\e[1m Creating temporary Btrfs subvolumes at $workdir\e[0m\n"
btrfs subvolume create $workdir/ || cleanup_and_quit "Failed to create btrfs subvolume $workdir)"
mount --bind $workdir $workdir || cleanup_and_exit "Failed to bind mount disk $workdir"
btrfs subvolume create $workdir/etc || cleanup_and_quit "Failed to create btrfs subvolume $workdir/etc)"
btrfs subvolume create $workdir/var || cleanup_and_quit "Failed to create btrfs subvolume $workdir/var)"