clear existing btrfs subv

This commit is contained in:
Chris Titus 2021-10-21 17:09:06 -05:00
parent 4136c5eb69
commit f81c62f99e
1 changed files with 2 additions and 1 deletions

View File

@ -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
;;