#!/usr/bin/env bash # Fix live ISO services for x86_64 set -e cd "$(dirname "$0")" echo "=== Fixing Live ISO Services for x86_64 ===" echo # 1. Remove Pi-specific first boot script if [ -f airootfs/etc/profile.d/stormux_first_boot.sh ]; then echo "Removing Pi-specific first boot script..." sudo rm airootfs/etc/profile.d/stormux_first_boot.sh fi # 2. Mask systemd-firstboot (blocks boot with interactive prompts) echo "Masking systemd-firstboot.service..." sudo ln -sf /dev/null airootfs/etc/systemd/system/systemd-firstboot.service # 3. Install Fenrir audio configurations echo "Installing Fenrir audio configurations..." sudo ./setup-fenrir-audio-configs.sh # 4. Check/verify enabled services echo echo "=== Enabled Services ===" ls -la airootfs/etc/systemd/system/multi-user.target.wants/ | grep -E "fenrir|speech|audio" || echo "No speech/audio services in multi-user.target.wants" ls -la airootfs/etc/systemd/system/sound.target.wants/ | grep -E "audio|sound" || echo "No services in sound.target.wants" echo echo "=== Configuration Complete ===" echo "Next step: sudo ./build.sh -v"