-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update docs and examples w/ new OCI functionality
- Loading branch information
Showing
5 changed files
with
162 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
variant: flatcar | ||
version: 1.1.0 | ||
|
||
passwd: | ||
users: | ||
- name: core | ||
ssh_authorized_keys: | ||
- SSH Pub Key go brrrr | ||
- name: gamer | ||
password_hash: Generate your own password here and paste it here | ||
home_dir: /home/gamer | ||
groups: | ||
- wheel | ||
shell: /bin/bash | ||
|
||
systemd: | ||
units: | ||
- enabled: true | ||
name: update-registry-config.service | ||
contents: | | ||
[Unit] | ||
Description=Add Booty registry endpoint to /etc/containers/registries.conf | ||
After=network-online.target | ||
ConditionPathExists=!/root/.postRegistryConfig | ||
|
||
[Service] | ||
type=oneshot | ||
ExecStartPre=/usr/bin/bash -c 'echo "[[registry]]" >> /etc/containers/registries.conf' | ||
ExecStartPre=/usr/bin/bash -c 'echo "location = \"\\\"{{ .ServerIP }}\\\"\"" >> /etc/containers/registries.conf' | ||
ExecStartPre=/usr/bin/bash -c 'echo "insecure = true" >> /etc/containers/registries.conf' | ||
ExecStart=touch /root/.postRegistryConfig | ||
|
||
[Install] | ||
WantedBy=multi-user.target | ||
- enabled: true | ||
name: rebase-custom.service | ||
contents: | | ||
[Unit] | ||
Description=Fetch and deploy target image | ||
# Only run on the firstboot | ||
After=network-online.target | ||
ConditionPathExists=!/root/.postRebase | ||
ConditionPathExists=/root/.postRegistryConfig | ||
|
||
[Service] | ||
# This ordering is important | ||
Type=oneshot | ||
RemainAfterExit=yes | ||
ExecStartPre=sleep 10 | ||
ExecStartPre=mount /dev/disk/by-label/boot /boot | ||
|
||
ExecStart=rpm-ostree rebase ostree-unverified-registry:{{ .OSTreeImage }} | ||
|
||
ExecStartPost=touch /root/postRebase | ||
ExecStartPost=systemctl reboot | ||
|
||
[Install] | ||
WantedBy=multi-user.target | ||
# This is assuming we're using `bazzite-nvidia` images | ||
- enabled: true | ||
name: ensure-nvidia-kmod.service | ||
contents: | | ||
[Unit] | ||
Description=Install things we like | ||
# Only run on the second boot | ||
After=rebase-custom.service | ||
ConditionPathExists=!/root/.postRebaseNvidia | ||
|
||
[Service] | ||
# This ordering is important | ||
After=ignition-firstboot-complete.service | ||
Type=oneshot | ||
RemainAfterExit=yes | ||
ExecStart=rpm-ostree kargs --append=rd.driver.blacklist=nouveau --append=modprobe.blacklist=nouveau --append=nvidia-drm.modeset=1 | ||
ExecStartPost=touch /root/.postRebaseNvidia | ||
ExecStartPost=systemctl reboot | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!ipxe | ||
|
||
echo Hello from Booty! | ||
|
||
set menu-timeout 5000 | ||
|
||
###################### MAIN MENU #################################### | ||
|
||
:start | ||
menu iPXE boot menu for Booty | ||
item --gap -- ------------------------- Booty ------------------------------ | ||
item --key i install Install ublue | ||
item --key d run-from-disk Boot from Disk | ||
item shell Drop to iPXE shell | ||
item reboot Reboot computer | ||
item | ||
item --key x exit Exit iPXE and continue BIOS boot | ||
choose --timeout ${menu-timeout} --default ${menu-default} selected || goto cancel | ||
set menu-timeout 0 | ||
goto ${selected} | ||
|
||
####### | ||
|
||
:shell | ||
echo Type 'exit' to get the back to the menu | ||
shell | ||
set menu-timeout 0 | ||
set submenu-timeout 0 | ||
goto start | ||
|
||
:failed | ||
echo Booting failed, dropping to shell | ||
goto shell | ||
|
||
:reboot | ||
reboot | ||
|
||
:exit | ||
exit | ||
|
||
:install | ||
kernel ${BASEURL}/fedora-coreos-${VERSION}-live-kernel-x86_64 initrd=main coreos.inst.install_dev=/dev/sda coreos.live.rootfs_url=${BASEURL}/fedora-coreos-${VERSION}-live-rootfs.x86_64.img ignition.firstboot ignition.platform.id=metal ignition.firstboot=1 coreos.inst.ignition_url=${CONFIGURL} | ||
initrd --name main ${BASEURL}/fedora-coreos-${VERSION}-live-initramfs.x86_64.img | ||
boot || goto failed | ||
goto start | ||
|
||
:run-from-disk | ||
sanboot --no-describe --drive 0x80 || goto failed | ||
goto start |