Last active
October 31, 2025 15:14
-
-
Save kronikpillow/3ee1898e955230d58157743a881c87cb to your computer and use it in GitHub Desktop.
ucore-autorebase-my.butane
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "ignition": { | |
| "version": "3.3.0" | |
| }, | |
| "passwd": { | |
| "users": [ | |
| { | |
| "name": "core", | |
| "passwordHash": "$6$SltiFsmFNwkRz7zN$LLRd.3usNHk00eaGIAY/fGDZlfnHdmwTx.7nXysfVHDgVCLnLoYU40KqkT9VJNOoX87Tzv.k.QlD5QZTzZEZH0", | |
| "sshAuthorizedKeys": [ | |
| "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOhESkoD9l4MlV2o/ymJFqsera20F6q8VIHLD8ug1JUv intertel@ucore" | |
| ] | |
| } | |
| ] | |
| }, | |
| "storage": { | |
| "directories": [ | |
| { | |
| "path": "/etc/ucore-autorebase", | |
| "mode": 492 | |
| } | |
| ], | |
| "files": [ | |
| { | |
| "path": "/etc/hostname", | |
| "contents": { | |
| "compression": "", | |
| "source": "data:,citadel" | |
| }, | |
| "mode": 420 | |
| } | |
| ] | |
| }, | |
| "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 NetworkManager-wait-online.service\nWants=network-online.target NetworkManager-wait-online.service\n\n[Service]\nType=oneshot\nStandardOutput=journal+console\nExecStartPre=/bin/sleep 10\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\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 NetworkManager-wait-online.service\nWants=network-online.target NetworkManager-wait-online.service\n\n[Service]\nType=oneshot\nStandardOutput=journal+console\nExecStartPre=/bin/sleep 30\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\n[Install]\nWantedBy=multi-user.target\n", | |
| "enabled": true, | |
| "name": "ucore-signed-autorebase.service" | |
| } | |
| ] | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment