adding install script
This commit is contained in:
5
butane/ckube-install
Normal file
5
butane/ckube-install
Normal 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"
|
@ -21,7 +21,7 @@ systemd:
|
||||
Type=forking
|
||||
TimeoutStartSec=600
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/bin/sh -c "flatcar-install -d /dev/vda -i /opt/ignition.json && udevadm settle && systemctl reboot"
|
||||
ExecStart=/usr/bin/sh -c "/opt/ckube-install"
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
storage:
|
||||
@ -29,4 +29,8 @@ storage:
|
||||
- path: /opt/ignition.json
|
||||
mode: 0700
|
||||
contents:
|
||||
source: http://192.168.40.3/leader.json
|
||||
source: http://192.168.40.3/leader.json
|
||||
- path: /opt/ckube-install
|
||||
mode: 0700
|
||||
contents:
|
||||
source: http://192.168.40.3/ckube-install
|
Reference in New Issue
Block a user