NixOS Root on ZFS: wipe flash-based storage device.

Signed-off-by: Maurice Zhou <ja@apvc.uk>
This commit is contained in:
Maurice Zhou
2023-02-14 18:01:41 +01:00
committed by George Melikov
parent cc6d72c02d
commit b3180fd225

View File

@@ -10,6 +10,11 @@ System Installation
for i in ${DISK}; do
# wipe flash-based storage device to improve
# performance.
# ALL DATA WILL BE LOST
# blkdiscard -f $i
sgdisk --zap-all $i
sgdisk -n1:1M:+1G -t1:EF00 $i