about summary refs log tree commit diff stats
path: root/bootstrap/install
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-03-21 17:51:43 +0100
committerene <ene@sils.li>2023-03-21 17:51:43 +0100
commit760ed264fc8c07e7d65a1ff5dbe5495c41630587 (patch)
treede57ddc4d3111dc6b65a0815a7b032d09080115f /bootstrap/install
parentFix(bootstrap/config_setup): Add dependencies (diff)
downloadnixos-config-760ed264fc8c07e7d65a1ff5dbe5495c41630587.tar.gz
nixos-config-760ed264fc8c07e7d65a1ff5dbe5495c41630587.zip
Fix(bootstrap/install): Highlight important information
Diffstat (limited to '')
-rwxr-xr-xbootstrap/install/install.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/bootstrap/install/install.sh b/bootstrap/install/install.sh
index a0561527..dfd7526e 100755
--- a/bootstrap/install/install.sh
+++ b/bootstrap/install/install.sh
@@ -98,10 +98,13 @@ msg "Finished mounting and generating btrfs subvolumes"
 
 msg "Creating swapfile..."
 msg2 "$(btrfs filesystem mkswapfile --size "$(free -m | awk '{if (NR==2) {printf "%sm\n", $2 + 500}}')" /mnt/swap/swapfile)";
-resume_offset=$(btrfs inspect-internal map-swapfile -r /mnt/swap/swapfile);
-swap_uuid=$(findmnt -no UUID -T /mnt/swap/swapfile);
-msg2 "UUID is: " "$swap_uuid";
-msg2 "Resume offset is: " "$resume_offset";
+msg "Finished creating swapfile!"
+msg "Important information:"
+msg2 "Swapfile UUID is: " "$(findmnt -no UUID -T /mnt/swap/swapfile)";
+msg2 "Swapfile resume offset is: " "$(btrfs inspect-internal map-swapfile -r /mnt/swap/swapfile)";
+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!"
 
 msg "Checking for incompatibilities..."
 ssd_or_hdd=$(cat /sys/block/$disk/queue/rotational);