fix: Moves shell into post_install

This commit is contained in:
Vincent Mahnke 2025-12-25 15:53:43 +01:00
commit 4a64d35bc9
Signed by: ViMaSter
GPG key ID: 6D787326BA7D6469
2 changed files with 8 additions and 3 deletions

View file

@ -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
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

View file

@ -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;