From 9ecd274e4e3d7ed6b544aad78605ae1e580c8c88 Mon Sep 17 00:00:00 2001 From: Tulip Blossom Date: Wed, 19 Mar 2025 02:36:21 -0300 Subject: [PATCH] feat: add functional live ISO --- .gitignore | 5 +++ Justfile | 95 ++++++++++++++++++++++++++++++++++++++++++ README.md | 25 ++++++++++- src/grub.cfg | 21 ++++++++++ src/xorriso_wrapper.sh | 3 ++ 5 files changed, 147 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 Justfile create mode 100644 src/grub.cfg create mode 100644 src/xorriso_wrapper.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..373fad1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*.img +rootfs +*.raw +*.iso +work diff --git a/Justfile b/Justfile new file mode 100644 index 0000000..c01d3f9 --- /dev/null +++ b/Justfile @@ -0,0 +1,95 @@ +workdir := env("TITANOBOA_WORKDIR", "work") +isoroot := env("TITANOBOA_ISO_ROOT", "work/iso-root") + +init-work: + mkdir -p {{ workdir }} + mkdir -p {{ isoroot }} + +initramfs $IMAGE: init-work + #!/usr/bin/env bash + # THIS NEEDS dracut-live + set -xeuo pipefail + sudo podman run --privileged --rm -it -v .:/tmp/test:Z $IMAGE \ + sh -c ' + set -xeuo pipefail + sudo dnf install -y dracut dracut-live kernel + INSTALLED_KERNEL=$(rpm -q kernel-core --queryformat "%{evr}.%{arch}" | tail -n 1) + cat >/tmp/fake-uname <