From 3c274ea4fe86bf1be632070425e1db7ad3dc0ce8 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sat, 11 Oct 2025 15:18:50 -0400 Subject: [PATCH] Fixed problem with getting target root partition. --- usr/local/bin/install_to_disk.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/usr/local/bin/install_to_disk.sh b/usr/local/bin/install_to_disk.sh index bfac585..b5f0491 100755 --- a/usr/local/bin/install_to_disk.sh +++ b/usr/local/bin/install_to_disk.sh @@ -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}')