Skip to content

Commit

Permalink
Chage config.toml to kickstart based configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Odilhao committed Oct 29, 2024
1 parent 406d069 commit 17e6933
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
17 changes: 16 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,19 @@ SHELL := /bin/bash
IMAGE_NAME=sway-bootc

build:
sudo podman build -t $(IMAGE_NAME) -f Containerfile
sudo podman build -t $(IMAGE_NAME) -f Containerfile

anaconda-iso:
sudo podman run \
--rm \
-it \
--privileged \
--pull=newer \
--security-opt label=type:unconfined_t \
-v ./output:/output \
-v ./config.toml:/config.toml:ro \
-v /var/lib/containers/storage:/var/lib/containers/storage \
quay.io/centos-bootc/bootc-image-builder:latest \
--type anaconda-iso \
--rootfs btrfs \
ghcr.io/odilhao/bootc-sway:latest
14 changes: 7 additions & 7 deletions config.toml.example
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
[[customizations.user]]
name = "user"
password = "password"
key = ""
groups = ["wheel"]


[customizations.installer.kickstart]
contents = """
text --non-interactive
Expand All @@ -21,4 +14,11 @@ btrfs / --subvol --name=root fedora-btrfs
btrfs /var/home --subvol --name=home fedora-btrfs
ostreecontainer --url docker pull ghcr.io/odilhao/bootc-sway:latest

firewall --disabled
services --enabled=sshd

# Only inject a SSH key for root
rootpw --iscrypted locked
sshkey --username root "<your key here>"

"""

0 comments on commit 17e6933

Please sign in to comment.