sudo sed -i "/GROUP=.*/d" /etc/flatcar/update.conf
CHANNEL=beta
VER=$(curl -fsSL "https://$CHANNEL.release.flatcar-linux.net/amd64-usr/current/version.txt" | grep FLATCAR_VERSION= | cut -d = -f 2)
sudo flatcar-update --to-version "$VER"
sudo reboot
cat /etc/flatcar/update.conf
sudo sed -i -e '/^GROUP/c GROUP=stable' /etc/flatcar/update.conf
sudo sed -i -e '/^REBOOT_STRATEGY/a GROUP=stable' /etc/flatcar/update.conf
sudo systemctl restart update-enginecat /etc/flatcar/update.conf
cat /usr/share/flatcar/update.conf
sudo sed -i -r '/^GROUP/c GROUP=stable' /etc/flatcar/update.conf
sudo systemctl restart update-engine
# debugging
sudo update_engine_client --status
sudo journalctl -f -u update-engine
cat /usr/share/flatcar/os-release
cat /usr/share/flatcar/update.confsee https://docs.flatcar-linux.org/os/switching-channels/
see https://gist.github.com/kyokuheki/3c0f3f773aa24b8364ef02d93c557d1f
sudo journalctl -f -o json | jq -cMr 'select(._SYSTEMD_UNIT != "XXXXXXX.service") | ._SYSTEMD_UNIT,.MESSAGE'cat <<_EOT_ > ~/.ssh/authorized_keys.d/key_name
ssh-ed25519 AAAAxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx comment
ssh-ed25519 AAAAyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy comment
ssh-ed25519 AAAAzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz comment
_EOT_
update-ssh-keys -l