fixes mostly for stable
[automated-distro-installer] / fai / config / hooks / partition.DEFAULT
index 0739e91c390a0cdf1151b97d107d737ec6a117dc..e8f0c401850232165c3fbdc5b006a936c62e36d4 100755 (executable)
@@ -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