diff --git a/kiwi-builder-image/Dockerfile b/kiwi-builder-image/Dockerfile index 19df2bf..c12eeb4 100644 --- a/kiwi-builder-image/Dockerfile +++ b/kiwi-builder-image/Dockerfile @@ -1,8 +1,8 @@ -#!BuildTag: %%IMG_PREFIX%%kiwi-builder:10.2.12.0-%RELEASE% -#!BuildTag: %%IMG_PREFIX%%kiwi-builder:10.2.12.0 +#!BuildTag: %%IMG_PREFIX%%kiwi-builder:10.2.29.0-%RELEASE% +#!BuildTag: %%IMG_PREFIX%%kiwi-builder:10.2.29.0 # Base image version, should match the tag above -ARG KIWIVERSION="10.2.12" +ARG KIWIVERSION="10.2.29" FROM registry.suse.com/bci/kiwi:${KIWIVERSION} ARG KIWIVERSION diff --git a/kiwi-builder-image/SL-Micro.kiwi b/kiwi-builder-image/SL-Micro.kiwi index 0cd9b02..5914935 100644 --- a/kiwi-builder-image/SL-Micro.kiwi +++ b/kiwi-builder-image/SL-Micro.kiwi @@ -30,16 +30,13 @@ - - - - + @@ -60,6 +57,15 @@ + + + + + + + + + @@ -90,6 +96,15 @@ + + + + + + + + + @@ -154,18 +169,10 @@ - - - - - - - - @@ -179,10 +186,6 @@ - - - - @@ -277,10 +280,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - 6.1 + 6.2 zypper SLE SLE @@ -291,7 +326,8 @@ initrd_system="dracut" filesystem="btrfs" firmware="uefi" - kernelcmdline="console=ttyS0,115200 console=tty0 security=selinux selinux=1 quiet systemd.show_status=1 net.ifnames=0" + efipartsize="512" + kernelcmdline="console=ttyS0,115200 console=tty0 security=selinux selinux=1 rd.kiwi.oem.luks.reencrypt rd.kiwi.oem.luks.reencrypt_randompass quiet systemd.show_status=1" bootpartition="false" bootkernel="custom" devicepersistency="by-uuid" @@ -323,7 +359,7 @@ - 6.1 + 6.2 zypper SLE SLE @@ -334,7 +370,8 @@ initrd_system="dracut" filesystem="btrfs" firmware="uefi" - kernelcmdline="console=ttyS0,115200 console=tty0 security=selinux selinux=1 quiet systemd.show_status=1 net.ifnames=0" + efipartsize="512" + kernelcmdline="console=ttyS0,115200 console=tty0 security=selinux selinux=1 quiet systemd.show_status=1" bootpartition="false" bootkernel="custom" devicepersistency="by-uuid" @@ -359,7 +396,7 @@ - 6.1 + 6.2 zypper SLE SLE @@ -374,7 +411,8 @@ installboot="install" install_continue_on_timeout="false" firmware="uefi" - kernelcmdline="console=ttyS0,115200 console=tty0 security=selinux selinux=1 quiet systemd.show_status=1 net.ifnames=0" + efipartsize="512" + kernelcmdline="console=ttyS0,115200 console=tty0 security=selinux selinux=1 quiet systemd.show_status=1" bootpartition="false" bootkernel="custom" devicepersistency="by-uuid" @@ -397,9 +435,8 @@ - - - 6.1 + + 6.2 zypper SLE SLE @@ -414,11 +451,96 @@ install_continue_on_timeout="false" fsmountoptions="noatime" firmware="uefi" - kernelcmdline="security=selinux selinux=1 quiet systemd.show_status=1 net.ifnames=0" + efipartsize="512" + kernelcmdline="security=selinux selinux=1 quiet systemd.show_status=1" + bootpartition="false" + devicepersistency="by-uuid" + btrfs_root_is_snapshot="true" + btrfs_root_is_readonly_snapshot="true" + btrfs_quota_groups="false" + disk_start_sector="8192" + > + + + + + + + + + + + + + + + + 6.2 + zypper + SLE + SLE + true + en_US + + + + + + + + + + + + + + + + + + + 6.2 + zypper + SLE + SLE + true + en_US + - - - 6.1 + + 6.2 zypper SLE SLE @@ -450,19 +571,20 @@ image="oem" initrd_system="dracut" installiso="true" + installpxe="true" filesystem="btrfs" installboot="install" install_continue_on_timeout="false" - fsmountoptions="noatime" firmware="uefi" - kernelcmdline="security=selinux selinux=1 quiet systemd.show_status=1 net.ifnames=0" + efipartsize="512" + kernelcmdline="security=selinux selinux=1 quiet systemd.show_status=1" bootpartition="false" + bootkernel="custom" devicepersistency="by-uuid" btrfs_root_is_snapshot="true" - efipartsize="128" btrfs_root_is_readonly_snapshot="true" - btrfs_quota_groups="false" - disk_start_sector="4096" + btrfs_quota_groups="true" + disk_start_sector="8192" > @@ -478,8 +600,8 @@ - - 6.1 + + 6.2 zypper SLE SLE @@ -494,13 +616,14 @@ installboot="install" install_continue_on_timeout="false" firmware="uefi" - efipartsize="128" - kernelcmdline="security=selinux selinux=1 quiet systemd.show_status=1 net.ifnames=0" + efipartsize="512" + kernelcmdline="console=ttyS0,115200n8 console=tty0 security=selinux selinux=1 quiet systemd.show_status=1" bootpartition="false" bootkernel="custom" devicepersistency="by-uuid" btrfs_root_is_snapshot="true" btrfs_root_is_readonly_snapshot="true" + editbootinstall="editbootinstall_rpi.sh" btrfs_quota_groups="true" disk_start_sector="4096" > @@ -520,7 +643,7 @@ - 6.1 + 6.2 zypper SLE SLE @@ -558,7 +681,7 @@ - 6.1 + 6.2 zypper SLE SLE @@ -596,7 +719,7 @@ - 6.1 + 6.2 zypper SLE SLE @@ -631,7 +754,7 @@ - 6.1 + 6.2 zypper SLE SLE @@ -670,7 +793,7 @@ - 6.1 + 6.2 zypper SLE SLE @@ -681,6 +804,7 @@ filesystem="btrfs" format="vmdk" firmware="uefi" + efipartsize="512" bootpartition="false" bootkernel="custom" devicepersistency="by-uuid" @@ -701,11 +825,11 @@ 24 - + - 6.1 + 6.2 zypper SLE SLE @@ -716,7 +840,8 @@ format="qcow2" filesystem="btrfs" firmware="uefi" - kernelcmdline="console=ttyS0,115200 console=tty0 security=selinux selinux=1 quiet systemd.show_status=1 net.ifnames=0 ignition.platform.id=qemu" + efipartsize="512" + kernelcmdline="console=ttyS0,115200 console=tty0 security=selinux selinux=1 quiet systemd.show_status=1 ignition.platform.id=qemu" bootpartition="false" bootkernel="custom" devicepersistency="by-uuid" @@ -742,7 +867,7 @@ - 6.1 + 6.2 zypper SLE SLE @@ -753,8 +878,8 @@ format="qcow2" filesystem="btrfs" firmware="uefi" - efipartsize="128" - kernelcmdline="console=ttyS0,115200 console=tty0 security=selinux selinux=1 quiet systemd.show_status=1 net.ifnames=0 ignition.platform.id=qemu" + efipartsize="512" + kernelcmdline="security=selinux selinux=1 quiet systemd.show_status=1 ignition.platform.id=qemu" bootpartition="false" bootkernel="custom" devicepersistency="by-uuid" @@ -777,7 +902,7 @@ - 6.1 + 6.2 zypper SLE SLE @@ -788,7 +913,7 @@ image="oem" filesystem="btrfs" firmware="ofw" - kernelcmdline="console=hvc0,115200 security=selinux selinux=1 quiet systemd.show_status=1 net.ifnames=0 ignition.platform.id=metal" + kernelcmdline="console=hvc0,115200 security=selinux selinux=1 quiet systemd.show_status=1 ignition.platform.id=metal" bootpartition="false" bootkernel="custom" devicepersistency="by-uuid" @@ -810,7 +935,7 @@ - 6.1 + 6.2 zypper SLE SLE @@ -824,7 +949,7 @@ target_blocksize="4096" filesystem="btrfs" firmware="ofw" - kernelcmdline="console=hvc0,115200 security=selinux selinux=1 quiet systemd.show_status=1 net.ifnames=0 ignition.platform.id=metal" + kernelcmdline="console=hvc0,115200 security=selinux selinux=1 quiet systemd.show_status=1 ignition.platform.id=metal" bootpartition="false" bootkernel="custom" devicepersistency="by-uuid" @@ -847,7 +972,7 @@ - 6.1 + 6.2 zypper SLE SLE @@ -860,7 +985,7 @@ installpxe="true" filesystem="btrfs" firmware="ofw" - kernelcmdline="console=hvc0,115200 security=selinux selinux=1 quiet net.ifnames=0 ignition.platform.id=metal" + kernelcmdline="console=hvc0,115200 security=selinux selinux=1 quiet ignition.platform.id=metal" bootpartition="false" bootkernel="custom" devicepersistency="by-uuid" @@ -887,7 +1012,7 @@ - 6.1 + 6.2 zypper SLE SLE @@ -903,7 +1028,7 @@ target_blocksize="4096" filesystem="btrfs" firmware="ofw" - kernelcmdline="console=hvc0,115200 security=selinux selinux=1 quiet systemd.show_status=1 net.ifnames=0 ignition.platform.id=metal" + kernelcmdline="console=hvc0,115200 security=selinux selinux=1 quiet systemd.show_status=1 ignition.platform.id=metal" bootpartition="false" bootkernel="custom" devicepersistency="by-uuid" @@ -936,20 +1061,17 @@ - - - - + + - + - + - @@ -959,7 +1081,7 @@ - + @@ -972,13 +1094,12 @@ - - + + - @@ -1002,16 +1123,16 @@ - + - - + + - + @@ -1033,6 +1154,7 @@ + @@ -1049,11 +1171,15 @@ --> - + - + + + + + + - + - + @@ -1104,12 +1231,12 @@ - + - + diff --git a/kiwi-builder-image/SL-Micro.kiwi.4096 b/kiwi-builder-image/SL-Micro.kiwi.4096 index 4887385..b747850 100644 --- a/kiwi-builder-image/SL-Micro.kiwi.4096 +++ b/kiwi-builder-image/SL-Micro.kiwi.4096 @@ -30,16 +30,13 @@ - - - - + @@ -60,6 +57,15 @@ + + + + + + + + + @@ -90,6 +96,15 @@ + + + + + + + + + @@ -154,18 +169,10 @@ - - - - - - - - @@ -179,10 +186,6 @@ - - - - @@ -277,10 +280,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - 6.1 + 6.2 zypper SLE SLE @@ -291,7 +326,8 @@ initrd_system="dracut" filesystem="btrfs" firmware="uefi" - kernelcmdline="console=ttyS0,115200 console=tty0 security=selinux selinux=1 quiet systemd.show_status=1 net.ifnames=0" + efipartsize="512" + kernelcmdline="console=ttyS0,115200 console=tty0 security=selinux selinux=1 rd.kiwi.oem.luks.reencrypt rd.kiwi.oem.luks.reencrypt_randompass quiet systemd.show_status=1" bootpartition="false" bootkernel="custom" devicepersistency="by-uuid" @@ -325,7 +361,7 @@ - 6.1 + 6.2 zypper SLE SLE @@ -336,7 +372,8 @@ initrd_system="dracut" filesystem="btrfs" firmware="uefi" - kernelcmdline="console=ttyS0,115200 console=tty0 security=selinux selinux=1 quiet systemd.show_status=1 net.ifnames=0" + efipartsize="512" + kernelcmdline="console=ttyS0,115200 console=tty0 security=selinux selinux=1 quiet systemd.show_status=1" bootpartition="false" bootkernel="custom" devicepersistency="by-uuid" @@ -363,7 +400,7 @@ - 6.1 + 6.2 zypper SLE SLE @@ -378,7 +415,8 @@ installboot="install" install_continue_on_timeout="false" firmware="uefi" - kernelcmdline="console=ttyS0,115200 console=tty0 security=selinux selinux=1 quiet systemd.show_status=1 net.ifnames=0" + efipartsize="512" + kernelcmdline="console=ttyS0,115200 console=tty0 security=selinux selinux=1 quiet systemd.show_status=1" bootpartition="false" bootkernel="custom" devicepersistency="by-uuid" @@ -403,9 +441,8 @@ - - - 6.1 + + 6.2 zypper SLE SLE @@ -420,11 +457,98 @@ install_continue_on_timeout="false" fsmountoptions="noatime" firmware="uefi" - kernelcmdline="security=selinux selinux=1 quiet systemd.show_status=1 net.ifnames=0" + efipartsize="512" + kernelcmdline="security=selinux selinux=1 quiet systemd.show_status=1" + bootpartition="false" + devicepersistency="by-uuid" + btrfs_root_is_snapshot="true" + btrfs_root_is_readonly_snapshot="true" + btrfs_quota_groups="false" + disk_start_sector="8192" + target_blocksize="4096" + > + + + + + + + + + + + + + + + + 6.2 + zypper + SLE + SLE + true + en_US + + + + + + + + + + + + + + + + + + + 6.2 + zypper + SLE + SLE + true + en_US + - - - 6.1 + + 6.2 zypper SLE SLE @@ -456,19 +579,21 @@ image="oem" initrd_system="dracut" installiso="true" + installpxe="true" filesystem="btrfs" installboot="install" install_continue_on_timeout="false" - fsmountoptions="noatime" firmware="uefi" - kernelcmdline="security=selinux selinux=1 quiet systemd.show_status=1 net.ifnames=0" + efipartsize="512" + kernelcmdline="security=selinux selinux=1 quiet systemd.show_status=1" bootpartition="false" + bootkernel="custom" devicepersistency="by-uuid" btrfs_root_is_snapshot="true" - efipartsize="128" btrfs_root_is_readonly_snapshot="true" - btrfs_quota_groups="false" - disk_start_sector="4096" + btrfs_quota_groups="true" + disk_start_sector="8192" + target_blocksize="4096" > @@ -484,8 +609,8 @@ - - 6.1 + + 6.2 zypper SLE SLE @@ -500,13 +625,14 @@ installboot="install" install_continue_on_timeout="false" firmware="uefi" - efipartsize="128" - kernelcmdline="security=selinux selinux=1 quiet systemd.show_status=1 net.ifnames=0" + efipartsize="512" + kernelcmdline="console=ttyS0,115200n8 console=tty0 security=selinux selinux=1 quiet systemd.show_status=1" bootpartition="false" bootkernel="custom" devicepersistency="by-uuid" btrfs_root_is_snapshot="true" btrfs_root_is_readonly_snapshot="true" + editbootinstall="editbootinstall_rpi.sh" btrfs_quota_groups="true" disk_start_sector="4096" > @@ -526,7 +652,7 @@ - 6.1 + 6.2 zypper SLE SLE @@ -564,7 +690,7 @@ - 6.1 + 6.2 zypper SLE SLE @@ -602,7 +728,7 @@ - 6.1 + 6.2 zypper SLE SLE @@ -637,7 +763,7 @@ - 6.1 + 6.2 zypper SLE SLE @@ -676,7 +802,7 @@ - 6.1 + 6.2 zypper SLE SLE @@ -687,6 +813,7 @@ filesystem="btrfs" format="vmdk" firmware="uefi" + efipartsize="512" bootpartition="false" bootkernel="custom" devicepersistency="by-uuid" @@ -707,11 +834,11 @@ 24 - + - 6.1 + 6.2 zypper SLE SLE @@ -722,15 +849,14 @@ format="qcow2" filesystem="btrfs" firmware="uefi" - kernelcmdline="console=ttyS0,115200 console=tty0 security=selinux selinux=1 quiet systemd.show_status=1 net.ifnames=0 ignition.platform.id=qemu" + efipartsize="512" + kernelcmdline="console=ttyS0,115200 console=tty0 security=selinux selinux=1 quiet systemd.show_status=1 ignition.platform.id=qemu" bootpartition="false" bootkernel="custom" devicepersistency="by-uuid" btrfs_root_is_snapshot="true" btrfs_root_is_readonly_snapshot="true" btrfs_quota_groups="true" - target_blocksize="4096" - efipartsize="200" > @@ -750,7 +876,7 @@ - 6.1 + 6.2 zypper SLE SLE @@ -761,8 +887,8 @@ format="qcow2" filesystem="btrfs" firmware="uefi" - efipartsize="128" - kernelcmdline="console=ttyS0,115200 console=tty0 security=selinux selinux=1 quiet systemd.show_status=1 net.ifnames=0 ignition.platform.id=qemu" + efipartsize="512" + kernelcmdline="security=selinux selinux=1 quiet systemd.show_status=1 ignition.platform.id=qemu" bootpartition="false" bootkernel="custom" devicepersistency="by-uuid" @@ -785,7 +911,7 @@ - 6.1 + 6.2 zypper SLE SLE @@ -796,7 +922,7 @@ image="oem" filesystem="btrfs" firmware="ofw" - kernelcmdline="console=hvc0,115200 security=selinux selinux=1 quiet systemd.show_status=1 net.ifnames=0 ignition.platform.id=metal" + kernelcmdline="console=hvc0,115200 security=selinux selinux=1 quiet systemd.show_status=1 ignition.platform.id=metal" bootpartition="false" bootkernel="custom" devicepersistency="by-uuid" @@ -818,7 +944,7 @@ - 6.1 + 6.2 zypper SLE SLE @@ -832,7 +958,7 @@ target_blocksize="4096" filesystem="btrfs" firmware="ofw" - kernelcmdline="console=hvc0,115200 security=selinux selinux=1 quiet systemd.show_status=1 net.ifnames=0 ignition.platform.id=metal" + kernelcmdline="console=hvc0,115200 security=selinux selinux=1 quiet systemd.show_status=1 ignition.platform.id=metal" bootpartition="false" bootkernel="custom" devicepersistency="by-uuid" @@ -855,7 +981,7 @@ - 6.1 + 6.2 zypper SLE SLE @@ -868,7 +994,7 @@ installpxe="true" filesystem="btrfs" firmware="ofw" - kernelcmdline="console=hvc0,115200 security=selinux selinux=1 quiet net.ifnames=0 ignition.platform.id=metal" + kernelcmdline="console=hvc0,115200 security=selinux selinux=1 quiet ignition.platform.id=metal" bootpartition="false" bootkernel="custom" devicepersistency="by-uuid" @@ -895,7 +1021,7 @@ - 6.1 + 6.2 zypper SLE SLE @@ -911,7 +1037,7 @@ target_blocksize="4096" filesystem="btrfs" firmware="ofw" - kernelcmdline="console=hvc0,115200 security=selinux selinux=1 quiet systemd.show_status=1 net.ifnames=0 ignition.platform.id=metal" + kernelcmdline="console=hvc0,115200 security=selinux selinux=1 quiet systemd.show_status=1 ignition.platform.id=metal" bootpartition="false" bootkernel="custom" devicepersistency="by-uuid" @@ -944,20 +1070,17 @@ - - - - + + - + - + - @@ -967,7 +1090,7 @@ - + @@ -980,13 +1103,12 @@ - - + + - @@ -1010,16 +1132,16 @@ - + - - + + - + @@ -1041,6 +1163,7 @@ + @@ -1057,11 +1180,15 @@ --> - + - + + + + + + - + - + @@ -1112,12 +1240,12 @@ - + - + diff --git a/kiwi-builder-image/build-image.sh b/kiwi-builder-image/build-image.sh index 0eb86e5..bd95ea1 100644 --- a/kiwi-builder-image/build-image.sh +++ b/kiwi-builder-image/build-image.sh @@ -28,7 +28,7 @@ LARGEBLOCK=false usage(){ cat <<-EOF ===================================== - SUSE Linux Micro 6.1 Kiwi SDK Builder + SUSE Linux Micro 6.2 Kiwi SDK Builder ===================================== Usage: ${0} [-p ] [-b] @@ -36,13 +36,12 @@ usage(){ Profile Options (-p): * Default: RAW Disk Image with default packages (incl. Podman & KVM) * Default-SelfInstall: SelfInstall ISO with default packages - * Default-RPi: RAW Disk Image for Raspberry Pi (aarch64 only with MBR) * Base: RAW Disk Image with reduced package set (no KVM) * Base-SelfInstall: SelfInstall ISO with reduced packages * Base-RT: RAW Disk Image with reduced packages and kernel-rt * Base-RT-SelfInstall: SelfInstall ISO with reduced packages and kernel-rt - * Base-RT-RPi: RAW Disk image for Raspberry Pi with kernel-rt (aarch64 only with MBR) - * Base-RPi: RAW Disk Image for Raspberry Pi with reduced packages (aarch64 only with MBR) + * RaspberryPi: RAW Disk Image for Raspberry Pi with default packages (aarch64 only with MBR) + * RaspberryPi-SelfInstall: SelfInstall ISO for Raspberry Pi with default packages (aarch64 only with MBR) 4096 Blocksize (-b): If specified, use a 4096 blocksize (rather than 512) when generating the image. @@ -83,9 +82,15 @@ if $LARGEBLOCK; then mv /micro-sdk/defs/SL-Micro.kiwi.4096 /micro-sdk/defs/SL-Micro.kiwi fi +# Create temporary directory that supports seclabel +dir=$(mktemp -d) +mkdir -p /tmp/output/tmp-dir +mount -t tmpfs $dir /tmp/output/tmp-dir + # Build the image -kiwi-ng --debug --profile $PROFILE system build \ - --description /micro-sdk/defs --target-dir /tmp/output --ignore-repos-used-for-build $REPOS +kiwi-ng --temp-dir /tmp/output/tmp-dir --debug --profile $PROFILE \ + system build --description /micro-sdk/defs --target-dir /tmp/output \ + --ignore-repos-used-for-build $REPOS # Print output RESULT=$? diff --git a/kiwi-builder-image/config.sh b/kiwi-builder-image/config.sh index cc9f1b0..d56f627 100644 --- a/kiwi-builder-image/config.sh +++ b/kiwi-builder-image/config.sh @@ -188,7 +188,6 @@ cat >/etc/fstab.script <<"EOF" #!/bin/sh set -eux -/usr/sbin/setup-fstab-for-overlayfs # If /var is on a different partition than /... if [ "$(findmnt -snT / -o SOURCE)" != "$(findmnt -snT /var -o SOURCE)" ]; then # ... set options for autoexpanding /var