mirror of
https://github.com/kairos-io/packages.git
synced 2025-08-16 23:17:53 +00:00
Bump service to use kairos-agent instead of elemental (#231)
This commit is contained in:
parent
d2c730cb48
commit
ace759431f
@ -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"
|
||||
|
@ -1,3 +1,3 @@
|
||||
name: "base-cloud-config"
|
||||
category: "system"
|
||||
version: "0.1"
|
||||
version: "0.2.0"
|
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
name: openrc
|
||||
category: init-svc
|
||||
version: 0.2-8
|
||||
version: 0.3.0
|
||||
description: "Experimental package for openrc support"
|
||||
|
@ -5,6 +5,6 @@ depend() {
|
||||
}
|
||||
|
||||
start() {
|
||||
elemental run-stage boot
|
||||
kairos-agent run-stage boot
|
||||
eend 0
|
||||
}
|
@ -6,6 +6,6 @@ depend() {
|
||||
}
|
||||
|
||||
start() {
|
||||
elemental run-stage network
|
||||
kairos-agent run-stage network
|
||||
eend 0
|
||||
}
|
@ -4,6 +4,6 @@ SLEEP_TIME=${SLEEP_TIME:-360}
|
||||
|
||||
while :
|
||||
do
|
||||
elemental run-stage "reconcile"
|
||||
kairos-agent run-stage "reconcile"
|
||||
sleep "$SLEEP_TIME"
|
||||
done
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -1,3 +1,3 @@
|
||||
name: systemd
|
||||
category: init-svc
|
||||
version: 0.6.3-5
|
||||
version: 0.7.0
|
||||
|
@ -1,3 +1,3 @@
|
||||
name: "suc-upgrade"
|
||||
category: "system"
|
||||
version: "0.1"
|
||||
version: "0.2.0"
|
@ -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
|
Loading…
Reference in New Issue
Block a user