From 1dfd547d826d07cafb9e24fa22bc3b5010ea2e7f Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Tue, 2 Jul 2024 16:14:14 -0400 Subject: [PATCH] Correction to @boot move --- linuxmint-postsetup.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/linuxmint-postsetup.sh b/linuxmint-postsetup.sh index 0018360..5abaeaa 100644 --- a/linuxmint-postsetup.sh +++ b/linuxmint-postsetup.sh @@ -46,15 +46,14 @@ function create_subvolumes() { local cmd="" fi - if [[ "$BootPart" == "@boot" ]]; then - #subvols+=("@boot") - ${cmd} rsync -avhHi --delete-after "/mnt/@/boot/" "/mnt/@boot/" - fi - subvols+=("${!SUBVOLS_DEFAULT[@]}") ${cmd} mount "$RootPart" /mnt + if [[ "$BootPart" == "@boot" ]]; then + ${cmd} rsync -avhHi --delete-after "/mnt/@/boot/" "/mnt/@boot/" + fi + if [[ "$SWAP" ]]; then ${cmd} btrfs subvolume create /mnt/@swap fi