diff options
author | Soispha <soispha@vhack.eu> | 2023-07-02 14:39:15 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-07-10 16:44:29 +0200 |
commit | d487b7b67e79f9e7cf7e87ef25a1c715252b8184 (patch) | |
tree | 72111e61ff0634abb58accd2cc5279a220bd1b38 /bootstrap | |
parent | Fix(hosts/apzu): Add information about swapfile (diff) | |
download | nixos-config-d487b7b67e79f9e7cf7e87ef25a1c715252b8184.tar.gz nixos-config-d487b7b67e79f9e7cf7e87ef25a1c715252b8184.zip |
Fix(bootstrap/install): Add required path to serial id lookup
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap/01_install | 2 |
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." |