Bootstrap : Fix paths.
This commit is contained in:
parent
d2e0debf3f
commit
5290b25c9b
|
@ -47,13 +47,13 @@ function bootstrap_nixos() {
|
|||
parted -s "${target}" set 1 esp on
|
||||
|
||||
# Format.
|
||||
mkfs.fat -F 32 "${target}1"
|
||||
mkfs.ext4 -F "${target}2"
|
||||
mkfs.fat -F 32 /dev/disk/by-partlabel/NIXBOOT
|
||||
mkfs.ext4 -F /dev/disk/by-partlabel/NIXROOT
|
||||
|
||||
# Mount.
|
||||
mount "${target}2" /mnt
|
||||
mount /dev/disk/by-partlabel/NIXROOT /mnt
|
||||
mkdir /mnt/boot
|
||||
mount "${target}1" /mnt/boot
|
||||
mount /dev/disk/by-partlabel/NIXBOOT /mnt/boot
|
||||
|
||||
# Generate config.
|
||||
nixos-generate-config --root /mnt
|
||||
|
|
Reference in a new issue