Fixed problem with getting target root partition.
This commit is contained in:
@@ -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}')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user