From 4a64d35bc9f59776c6911a58599af6cd008da9c6 Mon Sep 17 00:00:00 2001 From: Vincent Mahnke Date: Thu, 25 Dec 2025 15:53:43 +0100 Subject: [PATCH] fix: Moves shell into post_install --- post_install.sh | 8 +++++++- preseed.cfg | 3 +-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/post_install.sh b/post_install.sh index 8c9659e..a847cc0 100644 --- a/post_install.sh +++ b/post_install.sh @@ -59,4 +59,10 @@ tee /home/kiosk/.bash_profile > /dev/null <<'EOF' if [ -z "$WAYLAND_DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then exec cage firefox --kiosk https://c3nav.de fi -EOF \ No newline at end of file +EOF + +mkdir -p /home/kiosk/.mozilla/firefox +curl -fsSL -o /tmp/Firefox.zip "https://git.hamburg.ccc.de/Firefox.zip" +unzip -o /tmp/Firefox.zip -d /home/kiosk/.mozilla/firefox +chown -R kiosk:kiosk /home/kiosk/.mozilla/firefox +rm -f /tmp/Firefox.zip \ No newline at end of file diff --git a/preseed.cfg b/preseed.cfg index 6813601..527a83b 100644 --- a/preseed.cfg +++ b/preseed.cfg @@ -65,5 +65,4 @@ d-i finish-install/reboot_in_progress note d-i preseed/late_command string \ in-target curl -o /tmp/post_install.sh https://git.hamburg.ccc.de/ViMaSter/preseed/raw/branch/main/post_install.sh; \ in-target chmod +x /tmp/post_install.sh; \ - in-target /tmp/post_install.sh; \ - in-target sh -c 'FIREFOX_ZIP_URL="${FIREFOX_ZIP_URL:-https://git.hamburg.ccc.de/Firefox.zip}"; mkdir -p /home/kiosk/.mozilla/firefox; curl -fsSL -o /tmp/Firefox.zip "$FIREFOX_ZIP_URL"; unzip -o /tmp/Firefox.zip -d /home/kiosk/.mozilla/firefox; chown -R kiosk:kiosk /home/kiosk/.mozilla/firefox; rm -f /tmp/Firefox.zip' + in-target /tmp/post_install.sh; \ No newline at end of file