Skip to content

Commit

Permalink
Update oblong.bu
Browse files Browse the repository at this point in the history
  • Loading branch information
reesericci authored Mar 16, 2024
1 parent 5c8045d commit 74a744c
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions oblong.bu
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,6 @@ systemd:
ExecStart=/usr/bin/docker run --name qemu-ga -v /dev:/dev -v /etc/os-release:/etc/os-release:ro -v /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket -v /sys/fs/cgroup:/sys/fs/cgroup -v /sbin/shutdown:/sbin/shutdown -v /bin/systemctl:/bin/systemctl -v /usr/lib/systemd:/usr/lib/systemd -v /lib64:/lib64 --privileged --uts=host --net=host docker.io/danskadra/qemu-ga -v
ExecStop=/usr/bin/docker stop qemu-ga

[Install]
WantedBy=multi-user.target
- name: ignition-reruns.service
enabled: true
contents: |
[Unit]
Description=Ensure ignition re-runs
After=default.target

[Service]
Type=oneshot
ExecStart=/bin/unshare -m /bin/sh -c 'mount -o remount,rw /boot && touch /boot/ignition.firstboot'

[Install]
WantedBy=multi-user.target
passwd:
Expand All @@ -38,3 +25,22 @@ passwd:
- sudo
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDtJXJ1jH0J8/JseqadIYP2TkzqMQHTJWm7D7ycYnZP8IbYspyoCKheIkGkkW7pMSnK29KwvVWg4VN0vn+kGLbOu8fgoudGNkHgW8rt+/T7DdmjXWEoCOp4Sv8HIjANt/mbGLr8a7mF/fb/EvvOGuJHt0qb9dlrO227tXwLrs1isOqZiA55gFI56ua3gg0SIW7enJiNGx5AE8toeL9MZIA2cuSiCWoe1V8yidCk5bcXNZQdJtjtlHzXU9TfRGE3lwALsLZG7gbU6ww3t0YC9WcV9JsCCsj1vlMU3B5N6ElRVKkFNJS1BgGtN80VkWIgBQlEru6Vdjs7UaPHrO2lnvRpxC4hxMk5PmMP5iIqsiwwQabN93tqIuuiTG6VF7GTFcDxfwUv6s8JiDQEtif/Li5aKfoH0DoJRm2+drijFbZBFgU55DENLRvKynOG5lkmjcQ34D5ZHDpaZgMciK7IatojtIWzQRQ0RtTWwrY/RmN84Kx43s2bnko16+Bz4lpH2aU= reesericci@poptop
storage:
files:
- path: /bin/reprovision
contents:
inline: |
#!/bin/bash
set -eux -o pipefail
install_dev='vda'
install_ignition='https://raw.githubusercontent.com/obl-ong/infra/main/oblong.ign'
sudo rpm-ostree install -y kexec-tools coreos-installer
sudo rpm-ostree apply-live --allow-replacements
coreos-installer download -f pxe
kernel=$(ls fedora-coreos-*-live-kernel-x86_64)
initramfs=$(ls fedora-coreos-*-live-initramfs.*.img)
rootfs=$(ls fedora-coreos-*-live-rootfs.*.img)
cat $initramfs $rootfs > combined.img
sudo kexec -l $kernel --initrd=./combined.img --command-line="coreos.inst.install_dev=${install_dev} coreos.inst.ignition_url=${install_ignition} console=ttyS0"
sudo systemctl kexec
mode: 0771

0 comments on commit 74a744c

Please sign in to comment.