Remove duplicate auto-installer launch from Openbox autostart

- Openbox autostart was also trying to launch auto-installer using x-terminal-emulator
- This created conflict with .xinitrc launch method
- Removed installer launch from autostart to avoid duplicate processes
- .xinitrc now handles installer launch exclusively with proper timing
- Semicolon syntax was actually correct (run next command regardless of exit status)
- Prevents multiple installer instances and launch conflicts
parent d114f634
...@@ -5,22 +5,9 @@ sleep 3 ...@@ -5,22 +5,9 @@ sleep 3
# Check if we're running from live environment (CD/DVD or USB) # Check if we're running from live environment (CD/DVD or USB)
if grep -q "boot=live" /proc/cmdline || [ -f /lib/live/mount/medium/.disk/info ] || [ -f /run/live/medium/.disk/info ] || [ -d /lib/live ]; then if grep -q "boot=live" /proc/cmdline || [ -f /lib/live/mount/medium/.disk/info ] || [ -f /run/live/medium/.disk/info ] || [ -d /lib/live ]; then
# We're on the live CD, start the automatic installation process # We're on the live CD
echo "$(date): Live CD detected, starting AUTOMATIC installation..." >> /var/log/autoinstall.log echo "$(date): Live CD detected - auto-installer handled by .xinitrc" >> /var/log/autoinstall.log
# NOTE: Auto-installer is now launched by .xinitrc to avoid conflicts
# Launch our custom automatic installer (NOT Calamares)
if [ -x /usr/local/bin/auto-installer.sh ]; then
echo "$(date): Launching MBetter Auto-Installer (debootstrap-based)..." >> /var/log/autoinstall.log
# Run installer in terminal for visibility
x-terminal-emulator -e "/usr/local/bin/auto-installer.sh; echo 'Installation completed. Press Enter to continue...'; read" &
echo "$(date): Automatic installer started" >> /var/log/autoinstall.log
else
# Fallback if auto-installer is missing
echo "$(date): Auto-installer not found, opening terminal for manual installation..." >> /var/log/autoinstall.log
x-terminal-emulator -e "echo 'MBetter Live CD - Auto-installer missing'; echo ''; echo 'For manual installation:'; echo ' sudo debootstrap daedalus /target https://pkgmaster.devuan.org/merged'; echo ''; echo 'Press Enter to continue...'; read; bash" &
fi
else else
# We're on an installed system, run normal startup # We're on an installed system, run normal startup
echo "$(date): Installed system detected, running normal startup" >> /var/log/autoinstall.log echo "$(date): Installed system detected, running normal startup" >> /var/log/autoinstall.log
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment