Update auto_post_install.sh

This commit is contained in:
MacRimi 2025-07-19 17:25:43 +02:00 committed by GitHub
parent fab938055f
commit a24e00ad5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -795,7 +795,7 @@ EOF
# ==========================================================
install_log2ram_auto() {
install_log2ram_auto_() {
msg_info "$(translate "Checking if system disk is SSD or M.2...")"
ROOT_PART=$(lsblk -no NAME,MOUNTPOINT | grep ' /$' | awk '{print $1}')
@ -883,10 +883,9 @@ EOF
install_log2ram_auto_() {
set -euo pipefail
install_log2ram_auto() {
msg_info "$(translate "Checking if system disk is SSD or M.2...")"
ROOT_PART=$(lsblk -no NAME,MOUNTPOINT | grep ' /$' | awk '{print $1}')
SYSTEM_DISK=$(lsblk -no PKNAME /dev/$ROOT_PART 2>/dev/null)
SYSTEM_DISK=${SYSTEM_DISK:-sda}