Bump service to use kairos-agent instead of elemental (#231)

This commit is contained in:
Itxaka 2023-05-18 16:00:59 +02:00 committed by GitHub
parent d2c730cb48
commit ace759431f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 17 additions and 17 deletions

View File

@ -7,10 +7,10 @@ copy:
# The toolkit is required in module-setup and embedded in the initramfs. # The toolkit is required in module-setup and embedded in the initramfs.
- package: - package:
category: "system" category: "system"
name: "elemental-cli" name: "kairos-agent"
version: ">=0" version: ">=0"
source: "/usr/bin/elemental" source: "/usr/bin/kairos-agent"
destination: "/usr/bin/elemental" destination: "/usr/bin/kairos-agent"
- package: - package:
category: "dracut" category: "dracut"
name: "immutable-rootfs" name: "immutable-rootfs"

View File

@ -1,3 +1,3 @@
name: "base-cloud-config" name: "base-cloud-config"
category: "system" category: "system"
version: "0.1" version: "0.2.0"

View File

@ -25,6 +25,6 @@ stages:
- | - |
source /etc/os-release source /etc/os-release
echo >> /etc/issue echo >> /etc/issue
echo "You are booting from recovery mode. Run 'cos-reset' to reset the system to $VERSION" >> /etc/issue echo "You are booting from recovery mode. Run 'kairos-agent reset' to reset the system to $VERSION" >> /etc/issue
echo " or elemental upgrade to upgrade the active partition" >> /etc/issue echo " or kairos-agent upgrade to upgrade the active partition" >> /etc/issue
echo >> /etc/issue echo >> /etc/issue

View File

@ -1,4 +1,4 @@
name: openrc name: openrc
category: init-svc category: init-svc
version: 0.2-8 version: 0.3.0
description: "Experimental package for openrc support" description: "Experimental package for openrc support"

View File

@ -5,6 +5,6 @@ depend() {
} }
start() { start() {
elemental run-stage boot kairos-agent run-stage boot
eend 0 eend 0
} }

View File

@ -6,6 +6,6 @@ depend() {
} }
start() { start() {
elemental run-stage network kairos-agent run-stage network
eend 0 eend 0
} }

View File

@ -4,6 +4,6 @@ SLEEP_TIME=${SLEEP_TIME:-360}
while : while :
do do
elemental run-stage "reconcile" kairos-agent run-stage "reconcile"
sleep "$SLEEP_TIME" sleep "$SLEEP_TIME"
done done

View File

@ -5,7 +5,7 @@ Before=getty.target
[Service] [Service]
Type=oneshot Type=oneshot
RemainAfterExit=yes RemainAfterExit=yes
ExecStart=/usr/bin/elemental run-stage boot ExecStart=/usr/bin/kairos-agent run-stage boot
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@ -8,7 +8,7 @@ Before=sysinit.target
[Service] [Service]
Type=oneshot Type=oneshot
RemainAfterExit=yes RemainAfterExit=yes
ExecStart=/usr/bin/elemental run-stage fs ExecStart=/usr/bin/kairos-agent run-stage fs
[Install] [Install]
WantedBy=sysinit.target WantedBy=sysinit.target

View File

@ -7,7 +7,7 @@ Nice=19
IOSchedulingClass=2 IOSchedulingClass=2
IOSchedulingPriority=7 IOSchedulingPriority=7
Type=oneshot Type=oneshot
ExecStart=/usr/bin/elemental run-stage network ExecStart=/usr/bin/kairos-agent run-stage network
TimeoutStopSec=180 TimeoutStopSec=180
KillMode=process KillMode=process
KillSignal=SIGINT KillSignal=SIGINT

View File

@ -6,7 +6,7 @@ Nice=19
IOSchedulingClass=2 IOSchedulingClass=2
IOSchedulingPriority=7 IOSchedulingPriority=7
Type=oneshot Type=oneshot
ExecStart=/bin/bash -c "systemd-inhibit /usr/bin/elemental run-stage reconcile" ExecStart=/bin/bash -c "systemd-inhibit /usr/bin/kairos-agent run-stage reconcile"
TimeoutStopSec=180 TimeoutStopSec=180
KillMode=process KillMode=process
KillSignal=SIGINT KillSignal=SIGINT

View File

@ -1,3 +1,3 @@
name: systemd name: systemd
category: init-svc category: init-svc
version: 0.6.3-5 version: 0.7.0

View File

@ -1,3 +1,3 @@
name: "suc-upgrade" name: "suc-upgrade"
category: "system" category: "system"
version: "0.1" version: "0.2.0"

View File

@ -12,6 +12,6 @@ fi
mount --rbind $HOST_DIR/dev /dev mount --rbind $HOST_DIR/dev /dev
mount --rbind $HOST_DIR/run /run mount --rbind $HOST_DIR/run /run
elemental upgrade --directory / kairos-agent upgrade --directory /
nsenter -i -m -t 1 -- reboot nsenter -i -m -t 1 -- reboot
exit 1 exit 1