fixes and updates for t10
[automated-distro-installer] / fai / config / hooks / partition.DEFAULT
index 09020d27b30fbf55e864b4e30abfbc5f99f686f7..534e1fac2b2d1f8e4c0437329f743eaf910cfcb5 100755 (executable)
@@ -608,12 +608,15 @@ if $wipe && [[ $DISTRO != debianbuster_bootstrap ]]; then
   # btrfs subvolume set-default \
     #       $(btrfs subvolume list . | grep "root_$DISTRO$" | awk '{print $2}') .
 
-  # no cow on the root filesystem. it's setup is fully scripted,
-  # if it's messed up, we will just recreated it,
-  # and we can get better perf with this.
-  # I can't remember exactly why, but this is preferable to mounting with
-  # -o nodatacow, I think because subvolumes inherit that.
-  chattr -Rf +C root_$DISTRO
+  # For raid systems, cow allows for error correction, for non-raid systems,
+  # protects root fs from having the plug pulled. Reprovisioning a root
+  # subvol is not my favorite thing to do.
+  # # no cow on the root filesystem. it's setup is fully scripted,
+  # # if it's messed up, we will just recreated it,
+  # # and we can get better perf with this.
+  # # I can't remember exactly why, but this is preferable to mounting with
+  # # -o nodatacow, I think because subvolumes inherit that.
+  # chattr -Rf +C root_$DISTRO
   cd /
   umount /mnt
 fi