diff options
author | ene <ene@sils.li> | 2023-04-03 06:31:08 +0200 |
---|---|---|
committer | ene <ene@sils.li> | 2023-04-03 06:31:08 +0200 |
commit | 2d66b2be9956130618b26d3c44afe202b1c749c3 (patch) | |
tree | e093acc18d57a737ebf45f581f1d84cf4225724b | |
parent | Feat(system/services/nix): Add templates and short names (diff) | |
download | nixos-config-2d66b2be9956130618b26d3c44afe202b1c749c3.tar.gz nixos-config-2d66b2be9956130618b26d3c44afe202b1c749c3.zip |
Fix(boostrap/install): Enforce applying information
-rwxr-xr-x | bootstrap/install/install.sh | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/bootstrap/install/install.sh b/bootstrap/install/install.sh index 01d727c4..d92a9cb7 100755 --- a/bootstrap/install/install.sh +++ b/bootstrap/install/install.sh @@ -106,6 +106,19 @@ msg2 "Root-disk UUID is: $(lsblk -no UUID -T $DISK_ROOT)"; msg2 "EFI-disk UUID is: $(lsblk -no UUID -T $DISK_EFI)"; warning "This information needs to be entered in the host configuration BEFORE rebuilding it. Otherwise the system won't boot!" +info_applied=false; +while [ "$info_applied" = false ];do + readp "Have you updated your chosen host with this information? [N/y]: " result + case $result in + [Yy]) + info_applied=true; + ;; + *) + warning "You won't be able to boot, if you don't update it!" + ;; + esac +done + msg "Checking for incompatibilities..." ssd_or_hdd=$(cat /sys/block/$disk/queue/rotational); case "$ssd_or_hdd" in @@ -119,7 +132,7 @@ case "$ssd_or_hdd" in "false") msg2 "Nay, your ssd doesn't support trim, go on"; ;; - *) + *) warning "Your ssd doesn't seem to exists, if this bothers you please open an issue.'"; ;; esac |