about summary refs log tree commit diff stats
path: root/bootstrap
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-07-02 14:39:15 +0200
committerSoispha <soispha@vhack.eu>2023-07-10 16:44:29 +0200
commitd487b7b67e79f9e7cf7e87ef25a1c715252b8184 (patch)
tree72111e61ff0634abb58accd2cc5279a220bd1b38 /bootstrap
parentFix(hosts/apzu): Add information about swapfile (diff)
downloadnixos-config-d487b7b67e79f9e7cf7e87ef25a1c715252b8184.tar.gz
nixos-config-d487b7b67e79f9e7cf7e87ef25a1c715252b8184.zip
Fix(bootstrap/install): Add required path to serial id lookup
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap/01_install2
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap/01_install b/bootstrap/01_install
index da0a2f9a..cf6ac1cb 100755
--- a/bootstrap/01_install
+++ b/bootstrap/01_install
@@ -48,7 +48,7 @@ while [ "$info_applied" = false ]; do
 done
 
 msg "Checking for incompatibilities..."
-ssd_or_hdd="$(cat /sys/block/"$(basename "$(readlink -f "$NIX_DISK")" | tr -d '\n')"/queue/rotational)"
+ssd_or_hdd="$(cat /sys/block/"$(basename "$(readlink -f "/dev/disk/by-id/$NIX_DISK")" | tr -d '\n')"/queue/rotational)"
 case "$ssd_or_hdd" in
     0)
         msg2 "You seem to use a ssd."