diff options
| author | Chris Titus <[email protected]> | 2021-10-21 17:09:06 -0500 |
|---|---|---|
| committer | Chris Titus <[email protected]> | 2021-10-21 17:09:06 -0500 |
| commit | f81c62f99e7cd8ef4215f12774c64a3bd93cd56b (patch) | |
| tree | 38b1984796bedfeb50d8b26836ef66a3f423d79d | |
| parent | 4136c5eb699bf53bc9421d566a3970b5b0b33622 (diff) | |
| download | ArchTitus-f81c62f99e7cd8ef4215f12774c64a3bd93cd56b.tar.xz ArchTitus-f81c62f99e7cd8ef4215f12774c64a3bd93cd56b.zip | |
clear existing btrfs subv
| -rwxr-xr-x | 0-preinstall.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/0-preinstall.sh b/0-preinstall.sh index 041e202..b879d0d 100755 --- a/0-preinstall.sh +++ b/0-preinstall.sh @@ -49,6 +49,7 @@ echo "--------------------------------------" # disk prep sgdisk -Z ${DISK} # zap all on disk +#dd if=/dev/zero of=${DISK} bs=1M count=200 conv=fdatasync status=progress sgdisk -a 2048 -o ${DISK} # new gpt disk 2048 alignment # create partitions @@ -74,7 +75,7 @@ mkfs.vfat -F32 -n "UEFISYS" "${DISK}1" mkfs.btrfs -L "ROOT" "${DISK}2" mount -t btrfs "${DISK}2" /mnt fi - +ls /mnt | xargs btrfs subvolume delete btrfs subvolume create /mnt/@ umount /mnt ;; |
