Skip to content

Instantly share code, notes, and snippets.

@vbatts
Created June 24, 2020 21:27
Show Gist options
  • Save vbatts/0409a0a85a74ff2de55a1d08933983db to your computer and use it in GitHub Desktop.
Save vbatts/0409a0a85a74ff2de55a1d08933983db to your computer and use it in GitHub Desktop.

Revisions

  1. vbatts created this gist Jun 24, 2020.
    19 changes: 19 additions & 0 deletions flatcar.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    #!/bin/sh
    set -eu

    curl -LO https://www.flatcar-linux.org/security/image-signing-key/Flatcar_Image_Signing_Key.asc
    gpg --import Flatcar_Image_Signing_Key.asc

    wget \
    https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_production_qemu_image.img.bz2 \
    https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_production_qemu.sh \
    https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_production_qemu.README \
    https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_production_qemu_image.img.bz2.DIGESTS \
    https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_production_qemu_image.img.bz2.DIGESTS.asc

    gpg --verify flatcar_production_qemu_image.img.bz2.DIGESTS.asc

    sha512sum -c flatcar_production_qemu_image.img.bz2.DIGESTS
    bunzip2 flatcar_production_qemu_image.img.bz2
    sh ./flatcar_production_qemu.sh -a ~/.ssh/authorized_keys -p 2223 -- -curses
    # and then `ssh -l core -A -p 2223 localhost` from another terminal