Fixed problem with getting target root partition.

This commit is contained in:
Storm Dragon
2025-10-11 15:18:50 -04:00
parent 25f085d015
commit 3c274ea4fe

View File

@@ -7,7 +7,7 @@ set -euo pipefail
# Initialize logging
LOGDIR="/home/stormux/Logs"
LOGFILE="$LOGDIR/install_to_disk_$(date +%Y-%m-%d_%H-%M-%S).log"
LOGFILE="$LOGDIR/install_to_disk.log"
mkdir -p "$LOGDIR"
# Logging function
@@ -23,6 +23,8 @@ error_exit() {
log_error "$1"
echo "Installation failed. Log file: $LOGFILE"
restore_speech
echo
read -rp "Press enter to continue..."
exit 1
}
@@ -98,6 +100,8 @@ detect_partitions() {
while IFS= read -r line; do
local part fstype label
part=$(echo "$line" | awk '{print $1}')
# Remove lsblk tree characters that break mount commands
part="${part//[├─└│]/}"
fstype=$(echo "$line" | awk '{print $2}')
label=$(echo "$line" | awk '{print $3}')