From 92bfe467e410a767bc27db708dcbce74b8cdaf39 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Thu, 23 Jul 2026 19:37:42 -0400 Subject: [PATCH] Fixed a bug that could leave fstab unmodified on new installations. --- x86_64/airootfs/usr/local/bin/install-stormux | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x86_64/airootfs/usr/local/bin/install-stormux b/x86_64/airootfs/usr/local/bin/install-stormux index be18ff7..90edcf5 100755 --- a/x86_64/airootfs/usr/local/bin/install-stormux +++ b/x86_64/airootfs/usr/local/bin/install-stormux @@ -1461,10 +1461,10 @@ install_base_system() { # Generate or preserve fstab if [[ "$useExistingMount" == true ]]; then - if [[ -s "$mountPoint/etc/fstab" ]]; then + if grep -Eq '^[[:space:]]*[^#[:space:]]' "$mountPoint/etc/fstab" 2>/dev/null; then log_info "Manual mount mode: preserving existing /etc/fstab" else - log_warning "Manual mount mode: /etc/fstab not found, generating one" + log_warning "Manual mount mode: /etc/fstab has no filesystem entries, generating one" genfstab -U "$mountPoint" > "$mountPoint/etc/fstab" fi else