Fix bugs
This commit is contained in:
parent
2c82d38b5b
commit
4d75d48ff6
|
@ -1,8 +1,9 @@
|
||||||
#! /usr/bin/env nix-shell
|
#! /usr/bin/env nix-shell
|
||||||
#! nix-shell -i bash -p parted
|
#! nix-shell -i bash -p parted
|
||||||
|
|
||||||
DISK=/dev/mmcblk0
|
DISK=/dev/sdb
|
||||||
ROOT_PARTITION="$DISK"p2
|
BOOT_PARTITION="$DISK"1
|
||||||
|
ROOT_PARTITION="$DISK"2
|
||||||
ROOT_DIR=/mnt/nixos
|
ROOT_DIR=/mnt/nixos
|
||||||
BOOT_DIR=/mnt/nixos/boot
|
BOOT_DIR=/mnt/nixos/boot
|
||||||
LUKS_NAME=crypttoformat
|
LUKS_NAME=crypttoformat
|
||||||
|
@ -18,7 +19,7 @@ create_gpt() {
|
||||||
|
|
||||||
create_boot_partition() {
|
create_boot_partition() {
|
||||||
echo "Create boot partition."
|
echo "Create boot partition."
|
||||||
mkfs.fat -F32 -n BOOTTOFRMT "$DISK"p1
|
mkfs.fat -F32 -n BOOTTOFRMT $BOOT_PARTITION
|
||||||
sleep 5
|
sleep 5
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue