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.
- package:
category: "system"
name: "elemental-cli"
name: "kairos-agent"
version: ">=0"
source: "/usr/bin/elemental"
destination: "/usr/bin/elemental"
source: "/usr/bin/kairos-agent"
destination: "/usr/bin/kairos-agent"
- package:
category: "dracut"
name: "immutable-rootfs"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -6,7 +6,7 @@ Nice=19
IOSchedulingClass=2
IOSchedulingPriority=7
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
KillMode=process
KillSignal=SIGINT

View File

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

View File

@ -1,3 +1,3 @@
name: "suc-upgrade"
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/run /run
elemental upgrade --directory /
kairos-agent upgrade --directory /
nsenter -i -m -t 1 -- reboot
exit 1