os/butane/ckube-install

5 lines
185 B
Plaintext
Raw Normal View History

2022-12-02 12:24:23 +01:00
#!/bin/sh
target=$(xargs -n1 -a /proc/cmdline | awk -F '=' '/^flatcar.target=.*/ {print $NF}')
2022-12-02 12:31:26 +01:00
flatcar-install -d ${target} -i /opt/ignition.json && udevadm settle && systemctl reboot