From 05ce120f9a728953b766245bb2f40e2ac8adb625 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Thu, 24 Oct 2024 21:16:40 +0200 Subject: [PATCH] install.sh: fix drive selection --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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