actions
actions copied to clipboard
kexec mount issue
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sr0 11:0 1 368K 0 rom
vda 252:0 0 10G 0 disk
├─vda1 252:1 0 1M 0 part
├─vda2 252:2 0 200M 0 part /boot/efi
├─vda3 252:3 0 1G 0 part /boot
└─vda4 252:4 0 8.8G 0 part /
- name: "kexec into os"
image: ghcr.io/jacobweinstock/waitdaemon:latest
timeout: 180
pid: host
environment:
BLOCK_DEVICE: /dev/vda3
FS_TYPE: xfs
IMAGE: quay.io/tinkerbell/actions/kexec:latest
WAIT_SECONDS: 10
volumes:
- /var/run/docker.sock:/var/run/docker.sock
{
"time": "2025-04-28T05:03:44.893023425Z",
"level": "0",
"caller": "smee/internal/syslog/receiver.go:160",
"msg": "msg",
"service": "smee",
"msg": {
"app-name": "555e0af6f5f2",
"facility": "daemon",
"host": "192.168.254.13",
"msg": "time=\"2025-04-28T05:03:44Z\" level=info msg=\"Mounted [/dev/vda3] -> [/mountAction]\"\n",
"procid": "1542",
"severity": "ERR"
}
}
i cant mount /dev/vda3 with kexec
can i reboot hookos via action?
Hey @teamsmiley. Yes, you can. The same waitdaemon image you have above for kexec can be used. See the waitdaemon doc for more details. https://github.com/jacobweinstock/waitdaemon
- name: "reboot"
image: ghcr.io/jacobweinstock/waitdaemon:latest
timeout: 60
pid: host
command: ["reboot"]
environment:
IMAGE: alpine
WAIT_SECONDS: 5
volumes:
- /var/run/docker.sock:/var/run/docker.sock