From 544d7d0da8677bcd863a36bfe3b77528f080d248 Mon Sep 17 00:00:00 2001 From: Dennis ten Hoove Date: Thu, 2 May 2024 08:46:52 +0200 Subject: [PATCH] Bind mount workdir --- arkdep-build | 1 + 1 file changed, 1 insertion(+) diff --git a/arkdep-build b/arkdep-build index de9fa12..320f9b2 100755 --- a/arkdep-build +++ b/arkdep-build @@ -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)"