From c718324c5695159554bcf764d728f26acd983300 Mon Sep 17 00:00:00 2001 From: Win Date: Sat, 30 Aug 2025 16:24:43 +0700 Subject: [PATCH] test --- ucore-empcore.ign | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 ucore-empcore.ign diff --git a/ucore-empcore.ign b/ucore-empcore.ign new file mode 100644 index 0000000..f9d7494 --- /dev/null +++ b/ucore-empcore.ign @@ -0,0 +1,39 @@ +{ + "ignition": { + "version": "3.3.0" + }, + "passwd": { + "users": [ + { + "name": "core", + "passwordHash": "$y$j9T$OKCEl/5omP.lBa8MIA3Jf/$Kwu3J16f7bw6r4.vvWypaxlkts46x4zhzT4NLDtAmg9" + }, + { + "name": "winsdominoes", + "passwordHash": "$y$j9T$OKCEl/5omP.lBa8MIA3Jf/$Kwu3J16f7bw6r4.vvWypaxlkts46x4zhzT4NLDtAmg9" + } + ] + }, + "storage": { + "directories": [ + { + "path": "/etc/ucore-autorebase", + "mode": 492 + } + ] + }, + "systemd": { + "units": [ + { + "contents": "[Unit]\nDescription=uCore autorebase to unsigned OCI and reboot\nConditionPathExists=!/etc/ucore-autorebase/unverified\nConditionPathExists=!/etc/ucore-autorebase/signed\nAfter=network-online.target\nWants=network-online.target\n[Service]\nType=oneshot\nStandardOutput=journal+console\nExecStart=/usr/bin/rpm-ostree rebase --bypass-driver ostree-unverified-registry:ghcr.io/ublue-os/ucore:stable\nExecStart=/usr/bin/touch /etc/ucore-autorebase/unverified\nExecStart=/usr/bin/systemctl disable ucore-unsigned-autorebase.service\nExecStart=/usr/bin/systemctl reboot\n[Install]\nWantedBy=multi-user.target\n", + "enabled": true, + "name": "ucore-unsigned-autorebase.service" + }, + { + "contents": "[Unit]\nDescription=uCore autorebase to signed OCI and reboot\nConditionPathExists=/etc/ucore-autorebase/unverified\nConditionPathExists=!/etc/ucore-autorebase/signed\nAfter=network-online.target\nWants=network-online.target\n[Service]\nType=oneshot\nStandardOutput=journal+console\nExecStart=/usr/bin/rpm-ostree rebase --bypass-driver ostree-image-signed:docker://ghcr.io/ublue-os/ucore:stable\nExecStart=/usr/bin/touch /etc/ucore-autorebase/signed\nExecStart=/usr/bin/systemctl disable ucore-signed-autorebase.service\nExecStart=/usr/bin/systemctl reboot\n[Install]\nWantedBy=multi-user.target\n", + "enabled": true, + "name": "ucore-signed-autorebase.service" + } + ] + } +}