add -f to mkfs.btrfs

helps in some cases were existing data is on the drives
master
lub 5 years ago
parent 6c196e4288
commit e145cef7b4

@ -25,12 +25,12 @@ unset root_pwd
chroot=/mnt/root-unlocked chroot=/mnt/root-unlocked
# root device # root device
mkfs.btrfs /dev/mapper/root-unlocked mkfs.btrfs -f /dev/mapper/root-unlocked
mkdir /mnt/root-unlocked mkdir /mnt/root-unlocked
mount /dev/mapper/root-unlocked /mnt/root-unlocked mount /dev/mapper/root-unlocked /mnt/root-unlocked
# boot device # boot device
mkfs.btrfs "$boot" mkfs.btrfs -f "$boot"
mkdir "$chroot/boot" mkdir "$chroot/boot"
mount "$boot" "$chroot/boot" mount "$boot" "$chroot/boot"

Loading…
Cancel
Save