diff --git a/install.sh b/install.sh index ac5c7bf..7a1181d 100644 --- a/install.sh +++ b/install.sh @@ -28,10 +28,10 @@ a w EOF if [ $? != 0 ] ; then exit 1 ; fi -echo "> created DOS partition table on $drive with one bootable partition." -sudo mkfs.ext4 $drive*1 || exit 1 # /dev/sda 1 or /dev/nvme0n1 p1 => *1 instead of just 1 +echo "> created DOS partition table on /dev/$drive with one bootable partition." +sudo mkfs.ext4 /dev/$drive*1 || exit 1 # /dev/sda 1 or /dev/nvme0n1 p1 => *1 instead of just 1 echo "> formatted." -sudo mount $drive*1 /mnt || exit 1 +sudo mount /dev/$drive*1 /mnt || exit 1 echo "> mounted." echo "> generating config" sudo nixos-generate-config --root /mnt