adding install script

This commit is contained in:
2022-12-02 12:24:23 +01:00
parent d2929a2514
commit d2562a66df
3 changed files with 52 additions and 12 deletions

5
butane/ckube-install Normal file
View File

@ -0,0 +1,5 @@
#!/bin/sh
target=$(xargs -n1 -a /proc/cmdline | awk -F '=' '/^flatcar.target=.*/ {print $NF}')
flatcar-install -d ${target} -i /opt/ignition.json && udevadm settle && systemctl reboot"