From b243596e80168886c3e69b784af8e8bdf2e04beb Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Wed, 1 May 2024 15:33:13 -0700 Subject: [PATCH] Add SIG/Core example, note about isolation --- README.md | 36 ++++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f8a8fd6..addbd8b 100644 --- a/README.md +++ b/README.md @@ -28,22 +28,50 @@ You can actually do this in mock pretty easily. You could also probably get this running in a podman container or otherwise. As of this writing, we haven't tried it yet. Theory says it should work. -Note that selinux must be set to permissive. +**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 will need to use `--isolation=simple`. #### Live Image Example (EPEL) -The below makes an XFCE live image using EPEL packages. +The below makes an XFCE live image using SIG/Core packages. ``` +# Use SIG/Core +% git clone https://git.resf.org/sig_core/mock-rocky-configs +% bash deploy.sh +% mock -r rl-9-x86_64-core-infra --init +% mock -r rl-9-x86_64-core-infra --install kiwi-cli git \ + dracut-kiwi-live \ + kiwi-systemdeps-{bootloaders,containers,core,disk-images,filesystems,image-validation,iso-media} + +% sudo setenforce 0 +% mock -r rl-9-x86_64-core-infra --shell --enable-network +% git clone https://git.resf.org/sig_core/rocky-kiwi-descriptions -b r9 +% cd rocky-kiwi-descriptions +% sed -i 's/ZZVOLVERZZ/9/g ; s/ZZVERZZ/9/g' $(find . -name "*.xml") +% 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 +``` + +The below uses EPEL instead if you do not wish to use SIG/Core. + +``` +# Use EPEL % mock -r rocky+epel-9-x86_64 --init -% mock -r rocky+epel-9-x86_64 --install kiwi-cli \ +% mock -r rocky+epel-9-x86_64 --install kiwi-cli git \ dracut-kiwi-live \ kiwi-systemdeps-{bootloaders,containers,core,disk-images,filesystems,image-validation,iso-media} \ distribution-gpg-keys \ epel-release % sudo setenforce 0 -# Some builds require --isolation=simple -- Add it if you have issues % mock -r rocky+epel-9-x86_64 --shell --enable-network % git clone https://git.resf.org/sig_core/rocky-kiwi-descriptions -b r9 % cd rocky-kiwi-descriptions