From 16d7eb00bfc9e073924051243395a07af2c7bef1 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Mon, 15 Jul 2024 09:45:20 -0700 Subject: [PATCH] adjust readme --- README.md | 95 +++++++++++++++++++++++++++---------------------- wsl/default.xml | 12 +++++++ 2 files changed, 65 insertions(+), 42 deletions(-) create mode 100644 wsl/default.xml diff --git a/README.md b/README.md index 321aca6..8b57619 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,15 @@ Kiwi descriptions for Rocky Linux 9. changed to deal with live images (as kiwi doesn't seem to support using the --kiwi-file option for iso). +### What can I build? + +At the time of this writing, you can create cloud images, live images, and +containers. You can run any of the scripts to do so: + +* cloud-build.sh +* container-build.sh +* live-build.sh + ### Can't you use the same config.xml? Why are you symlinking? Yes and the reason why we're symlinking is that "name" and "displayname" are @@ -30,11 +39,54 @@ fact, most builds may fail in mock due to loop devices being unusable. **Note**: SELinux must be set to permissive. **Note**: There may be cases where a build will fail in mock. If this is the -case, you may need to use `--isolation=simple`. +case, you may need to use `--isolation=simple` or forego the use of mock. **Note**: If you receive an error about loop devices while running in mock, run this on the host instead. +#### Live Image Example on Rocky Linux 9 without using mock + +``` +# Use SIG/Core +% dnf install rocky-release-core +% dnf install kiwi-cli git \ + dracut-kiwi-live \ + kiwi-systemdeps-{bootloaders,containers,core,disk-images,filesystems,image-validation,iso-media} + +% sudo setenforce 0 +% git clone https://git.resf.org/sig_core/rocky-kiwi-descriptions -b r9 +% cd rocky-kiwi-descriptions +% ln -sf configs/live-xfce.xml config.xml +% kiwi-ng --debug --type="iso" \ + --profile="XFCE-Live" \ + --color-output system \ + build \ + --description="./" \ + --target-dir /builddir/lmc +``` + +If you wish to use EPEL instead... + +``` +% dnf install epel-release -y +% crb enable +% dnf install kiwi-cli git \ + dracut-kiwi-live \ + kiwi-systemdeps-{bootloaders,containers,core,disk-images,filesystems,image-validation,iso-media} \ + distribution-gpg-keys + +% sudo setenforce 0 +% git clone https://git.resf.org/sig_core/rocky-kiwi-descriptions -b r9 +% cd rocky-kiwi-descriptions +% ln -sf configs/live-xfce.xml config.xml +% kiwi-ng --debug --type="iso" \ + --profile="XFCE-Live" \ + --color-output system \ + build \ + --description="./" \ + --target-dir /builddir/lmc +``` + #### Live Image Example (EPEL) using mock The below makes an XFCE live image using SIG/Core packages. @@ -94,45 +146,4 @@ mock environment. % bash live-build.sh --live-image XFCE --output-dir /builddir/xfce ``` -#### Live Image Example on Rocky Linux 9 without using mock -``` -# Use SIG/Core -% dnf install rocky-release-core -% dnf install kiwi-cli git \ - dracut-kiwi-live \ - kiwi-systemdeps-{bootloaders,containers,core,disk-images,filesystems,image-validation,iso-media} - -% sudo setenforce 0 -% git clone https://git.resf.org/sig_core/rocky-kiwi-descriptions -b r9 -% cd rocky-kiwi-descriptions -% ln -sf configs/live-xfce.xml config.xml -% kiwi-ng --debug --type="iso" \ - --profile="XFCE-Live" \ - --color-output system \ - build \ - --description="./" \ - --target-dir /builddir/lmc -``` - -If you wish to use EPEL instead... - -``` -% dnf install epel-release -y -% crb enable -% dnf install kiwi-cli git \ - dracut-kiwi-live \ - kiwi-systemdeps-{bootloaders,containers,core,disk-images,filesystems,image-validation,iso-media} \ - distribution-gpg-keys - -% sudo setenforce 0 -% git clone https://git.resf.org/sig_core/rocky-kiwi-descriptions -b r9 -% cd rocky-kiwi-descriptions -% ln -sf configs/live-xfce.xml config.xml -% kiwi-ng --debug --type="iso" \ - --profile="XFCE-Live" \ - --color-output system \ - build \ - --description="./" \ - --target-dir /builddir/lmc -``` diff --git a/wsl/default.xml b/wsl/default.xml new file mode 100644 index 0000000..c3a09c3 --- /dev/null +++ b/wsl/default.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + +