Compare commits
2 Commits
3fed164193
...
920aeef7f3
| Author | SHA1 | Date | |
|---|---|---|---|
|
920aeef7f3
|
|||
|
9038962f29
|
54
active/software_osbuild/fedora-42-base.toml
Normal file
54
active/software_osbuild/fedora-42-base.toml
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
name = "fedora-42-base"
|
||||||
|
description = "Fedora 42 Base Installation"
|
||||||
|
version = "0.0.1"
|
||||||
|
distro = "fedora-42"
|
||||||
|
modules = []
|
||||||
|
groups = []
|
||||||
|
|
||||||
|
[customizations]
|
||||||
|
hostname = "f42-base"
|
||||||
|
|
||||||
|
[[customizations.disk.partitions]]
|
||||||
|
type = "btrfs"
|
||||||
|
minsize = "32 GiB"
|
||||||
|
|
||||||
|
[[customizations.disk.partitions.subvolumes]]
|
||||||
|
name = "root"
|
||||||
|
mountpoint = "/"
|
||||||
|
|
||||||
|
[[customizations.disk.partitions.subvolumes]]
|
||||||
|
name = "home"
|
||||||
|
mountpoint = "/home"
|
||||||
|
|
||||||
|
[customizations.timezone]
|
||||||
|
timezone = "America/New_York"
|
||||||
|
|
||||||
|
[[customizations.sshkey]]
|
||||||
|
user = "root"
|
||||||
|
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGQa781Qj8mNlUdRquFFqg0O2ornG9SBHe705y4+1vPI ssh@ducoterra.net"
|
||||||
|
|
||||||
|
[customizations.firewall.services]
|
||||||
|
enabled = ["ssh"]
|
||||||
|
|
||||||
|
[customizations.services]
|
||||||
|
enabled = ["sshd"]
|
||||||
|
|
||||||
|
[[packages]]
|
||||||
|
name = "bash-completion"
|
||||||
|
version = "*"
|
||||||
|
|
||||||
|
[[packages]]
|
||||||
|
name = "tmux"
|
||||||
|
version = "*"
|
||||||
|
|
||||||
|
[[packages]]
|
||||||
|
name = "openssh-server"
|
||||||
|
version = "*"
|
||||||
|
|
||||||
|
[[packages]]
|
||||||
|
name = "vim"
|
||||||
|
version = "*"
|
||||||
|
|
||||||
|
[[packages]]
|
||||||
|
name = "git"
|
||||||
|
version = "*"
|
||||||
66
active/software_osbuild/image_builder.md
Normal file
66
active/software_osbuild/image_builder.md
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
# Image Builder
|
||||||
|
|
||||||
|
<https://osbuild.org/docs/user-guide/blueprint-reference/>
|
||||||
|
|
||||||
|
## Warning
|
||||||
|
|
||||||
|
From the [Red Hat
|
||||||
|
Documentation](https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html-single/composing_installing_and_managing_rhel_for_edge_images/index):
|
||||||
|
|
||||||
|
> You cannot build an operating system image that differs from the RHEL image
|
||||||
|
> builder host. For example, you cannot use a RHEL system to build Fedora or
|
||||||
|
> CentOS images.
|
||||||
|
|
||||||
|
## Installing
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Install the packages
|
||||||
|
dnf install -y osbuild-composer composer-cli
|
||||||
|
|
||||||
|
# Start/enable the service
|
||||||
|
systemctl enable --now osbuild-composer.socket
|
||||||
|
|
||||||
|
# Optional: add your user to the weldr group
|
||||||
|
sudo usermod -aG weldr $USER
|
||||||
|
|
||||||
|
# Optional: cockpit dependency
|
||||||
|
dnf install -y cockpit-composer
|
||||||
|
```
|
||||||
|
|
||||||
|
## Building Images
|
||||||
|
|
||||||
|
1. Create a toml file describing your image
|
||||||
|
|
||||||
|
See `fedora-42-base.toml` for an example.
|
||||||
|
|
||||||
|
2. Push the toml to composer
|
||||||
|
|
||||||
|
```bash
|
||||||
|
composer-cli blueprints push active/software_osbuild/fedora-42-base.toml
|
||||||
|
|
||||||
|
# List blueprints
|
||||||
|
composer-cli blueprints list
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Generate the image
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# List image types
|
||||||
|
composer-cli compose types
|
||||||
|
|
||||||
|
# Build the image
|
||||||
|
composer-cli compose start fedora-42-base qcow2
|
||||||
|
|
||||||
|
# Check status
|
||||||
|
composer-cli compose status
|
||||||
|
```
|
||||||
|
|
||||||
|
4. Run the image
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Download the image
|
||||||
|
composer-cli compose image --filename ~/Downloads/fedora-42-base.qcow2 image-uuid
|
||||||
|
|
||||||
|
# Test with qemu
|
||||||
|
qemu-kvm --name test-fedora-42-base -m 4096 -hda ~/Downloads/fedora-42-base.qcow2
|
||||||
|
```
|
||||||
1
keys/ssh_id_ed25519.pub
Normal file
1
keys/ssh_id_ed25519.pub
Normal file
@@ -0,0 +1 @@
|
|||||||
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGQa781Qj8mNlUdRquFFqg0O2ornG9SBHe705y4+1vPI ssh@ducoterra.net
|
||||||
1
keys/ssh_id_rsa.pub
Normal file
1
keys/ssh_id_rsa.pub
Normal file
@@ -0,0 +1 @@
|
|||||||
|
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC3X3g/2eCucB0mamJzoePvsRz7Lp0DFD6gXzsPO1H2JamidYr14xGTihOsD0vk1TgK/KfQ1UzREsVm6/UIXjF7ZHfCAX5ObiF5Y2mbb139hqddQJ9Z4XLqIdYm/K7sW1Ba0FGgxeuC7POzIT4r3giMysxcwHg8fNQUS629bpR65eiQoum5KfNWXO7IhJ1zzGn2vVn7wIUxP6c75iP7sXY8ADjK5x08+kGldkNyJSTq6y+3I2WweaNg7gEz0frZvNgTXoOKcKOR4u61DIAPjkKmB41vVc8uRbhKYfUS6gW278ab/UwO3M9o/fL7xOOhB2lzlucg4gP+AeSFNNe2Q3tXLEcSUKDq+gxo27loWyZpSZxce4AcXiK+85iAFX99cl/mYoT0aaZTfBkTrwl8qWP/QjYcBBKail5WX2ccdOxeSlaEw9fbO3PtXVkp4XbkobQSQ/8/XHNGWIVGGKfiqFQGA0MpYNka3NKsaJffOhLT1h8lofAck+t1Zoh+WIZEgR08oFbRxe9x7C39l59LKNoqGjfgv/SOTYQP+B4edzfgl0V1ExoiSObH+5AniWz/XFC32pwyX2EpZ0pTVwQeiX/21AmPydlHd7hkcF0jcMU0nyJZjSC57YC2nyXX89VYhrKIbULgWYDLGFHf4qBhR4eV+4g4NldT7FL+mSk9YrZypw== ssh@ducoterra.net
|
||||||
Reference in New Issue
Block a user