X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fhooks%2Fpartition.DEFAULT;h=e8f0c401850232165c3fbdc5b006a936c62e36d4;hb=11f823d2d74425b6ff3143ec0106e2504346f496;hp=0739e91c390a0cdf1151b97d107d737ec6a117dc;hpb=08420220e949029a0d2e211edcc93c0701b23429;p=automated-distro-installer diff --git a/fai/config/hooks/partition.DEFAULT b/fai/config/hooks/partition.DEFAULT index 0739e91..e8f0c40 100755 --- a/fai/config/hooks/partition.DEFAULT +++ b/fai/config/hooks/partition.DEFAULT @@ -10,7 +10,6 @@ skiptask partition || ! type skiptask # for running not in fai #### begin configuration -partition=true # change to true to force a full wipe bootn=3 rootn=1 swapn=2 @@ -20,6 +19,12 @@ boot_mib=1500 ##### end configuration +if ifclass REPARTITION;then + partition=true # force a full wipe +else + partition=false # change to true to force a full wipe +fi + lastn=$bios_grubn @@ -177,6 +182,7 @@ btrfs subvolume set-default 0 /mnt cd /mnt for x in q home_$DISTRO root_$DISTRO; do btrfs subvolume list . | grep "$x$" >/dev/null || btrfs subvolume create $x + chown root:1000 q done mkdir -p /mnt/root_$DISTRO/boot for x in root/a q/a; do