Skip to content

Instantly share code, notes, and snippets.

@airbreather
Last active December 20, 2024 21:40
Show Gist options
  • Save airbreather/1dd3ccdc62653ad77fb3e04f77de594f to your computer and use it in GitHub Desktop.
Save airbreather/1dd3ccdc62653ad77fb3e04f77de594f to your computer and use it in GitHub Desktop.
{
"ignition": {
"version": "3.5.0"
},
"passwd": {
"users": [
{
"name": "core",
"passwordHash": "$y$j9T$XNXhsDOqU0yjoZ6fag8iU0$vtrw716XlFnq4HkvD7RLLCr0A8Q1vPD7bKqlwdwRVC7",
"sshAuthorizedKeys": [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICCWGHWSbfrMaedEPJUZKoHKHKcowy2oKW2PIK8MUJ7P 20241219"
]
}
]
},
"storage": {
"directories": [
{
"path": "/etc/ucore-autorebase",
"mode": 492
}
],
"filesystems": [
{
"device": "/dev/disk/by-partlabel/root",
"format": "btrfs",
"label": "root",
"mountOptions": [
"compress=zstd"
],
"wipeFilesystem": true
}
]
},
"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-hci:stable-zfs\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/verified\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-hci:stable-zfs\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"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment