This commit is contained in:
Win 2025-08-30 16:24:43 +07:00
parent 1c15b18cbd
commit c718324c56
1 changed files with 39 additions and 0 deletions

39
ucore-empcore.ign Normal file
View File

@ -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"
}
]
}
}