Created
January 22, 2024 09:56
-
-
Save lzap/8a0ad0c4ab6bce87cd6caf5c1ef08069 to your computer and use it in GitHub Desktop.
Foreman bootable container test
This file contains hidden or 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
%pre | |
skopeo login foreman-nuc2.example.com -u lzap -p changeme --tls-verify=false | |
skopeo copy docker://foreman-nuc2.example.com/demo-lzap-fedora-bootc:eln oci:/var/tmp/container --tls-verify=false | |
%end | |
text | |
ostreecontainer --url=/var/tmp/container --transport=oci --no-signature-verification | |
user --name lzap --password $6$ptTfOsCpq5XA2qs6$FXMtwoMCQ4EJ698PXqJHuu/LS34WsomG2v1Cy5SzDtges40IaL4N.K2/7We6ertVDlA5tYhYofhNLAbfArGdH1 --iscrypted --groups wheel | |
sshkey --username lzap "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEhnn80ZywmjeBFFOGm+cm+5HUwm62qTVnjKlOdYFLHN lzap+ssh_redhat.com" | |
rootpw --lock | |
lang en_US.UTF-8 | |
keyboard us | |
timezone UTC | |
clearpart --all | |
part biosboot --fstype=biosboot --size=1 | |
part /boot/efi --fstype=efi --size=512 --fsoptions="umask=0077" | |
part /boot --fstype=ext2 --size=1024 --label=boot | |
part swap --fstype=swap --size=1024 | |
part / --fstype=ext4 --grow | |
bootloader | |
reboot --eject | |
%post | |
<%= indent(2, skip1: true) { snippet('built', :variables => { :endpoint => 'built', :method => 'POST', :body_file => '/root/install.post.log' }) } -%> | |
sync | |
%end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Password is lzap / changeme
(Not my actual password)