commit fdd48dfb358db3e6cda1ab3f6f8d56636233ad08 Author: RhiobeT Date: Wed Oct 5 20:00:12 2022 +0200 Add post update script and service diff --git a/etc/systemd/system/post-update.service b/etc/systemd/system/post-update.service new file mode 100644 index 0000000..f26e4f4 --- /dev/null +++ b/etc/systemd/system/post-update.service @@ -0,0 +1,11 @@ +[Unit] +Description=Post Deck update configuration +Requires=network-online.target +After=network-online.target + +[Service] +Type=oneshot +ExecStart=/etc/systemd/system/post-update.sh + +[Install] +WantedBy=multi-user.target diff --git a/etc/systemd/system/post-update.sh b/etc/systemd/system/post-update.sh new file mode 100755 index 0000000..4110958 --- /dev/null +++ b/etc/systemd/system/post-update.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +if [ ! -f /post-update-done ]; then + steamos-readonly disable + pacman-key --init + pacman-key --populate archlinux + pacman -S --noconfirm glibc + sed -i 's/#\(ja_JP.UTF-8.*\)/\1/' /etc/locale.gen + locale-gen + touch /post-update-done + steamos-readonly enable +fi