Kiwi Build: Failed with stderr: Re-reading the partition table failed.: Invalid argument , stdout: Welcome to fdisk (util-linux 2.37.4).

31 views
Skip to first unread message

Jan Robinson

unread,
Jul 14, 2025, 5:25:13 AMJul 14
to kiwi
Hello Group.

Please assist.

SLES15 SP7
Building a Kiwi ISO image type=oem fail to create "isolinux.bin".
'fdisk' seems to fail.

The same config.xlm is used for SLES15 SP6 and is working.

Changing the repo to point to SP7 is the only change.

<image schemaversion="7.4" name="SLES15-MiniOS-ABC-OEM.INPROGRESS">
    <description type="system">
        <author>Jan</author>
        <contact>abc</contact>
        <specification>RamDisk minios build</specification>
    </description>
    <preferences>
        <version>15.7</version>
        <packagemanager>zypper</packagemanager>
        <locale>en_US</locale>
        <keytable>us</keytable>
        <timezone>Europe/Berlin</timezone>
        <rpm-excludedocs>true</rpm-excludedocs>
        <rpm-check-signatures>false</rpm-check-signatures>
        <bootsplash-theme>SLE</bootsplash-theme>

        <type image="oem" filesystem="ext4" installiso="true" initrd_system="dracut" installboot="install" kernelcmdline="rd.kiwi.ramdisk ramdisk_size=4096000 splash">
            <bootloader  name="grub2" console="console" timeout="5"/>
        <oemconfig>
            <oem-skip-verify>true</oem-skip-verify>
            <oem-unattended>true</oem-unattended>
            <oem-unattended-id>/dev/ram0</oem-unattended-id>
            <oem-device-filter>/dev/sd</oem-device-filter>
            <oem-swap>false</oem-swap>
            <oem-multipath-scan>false</oem-multipath-scan>
        </oemconfig>
        </type>
    </preferences>


SP7-iso
ls -l /mnt/iso1/boot/x86_64/loader/
-rw-r--r-- 1 root root      512 Jul 11 12:47 boot_hybrid.img
-rw-r--r-- 1 root root   293125 Jul 11 12:47 eltorito.img
drwxr-xr-x 1 root root     2048 Jul 11 12:47 grub2
-rw-r--r-- 1 root root 58054664 Jul 11 12:47 initrd
-rw-r--r-- 1 root root 14379520 Jul 11 12:47 linux

SP6-iso
# ls -l /mnt/iso/boot/x86_64/loader/
-rw-r--r-- 1 root root      512 Apr  3 09:30 boot_hybrid.img
-rw-r--r-- 1 root root    19784 Apr  3 09:30 chain.c32
-rw-r--r-- 1 root root    21860 Apr  3 09:30 gfxboot.c32
-rw------- 1 root root 58891517 Apr  3 09:30 initrd
-rw-r--r-- 1 root root    24576 Apr  3 09:30 isolinux.bin
-rw-r--r-- 1 root root      631 Apr  3 09:30 isolinux.cfg
-rw-r--r-- 1 root root      142 Apr  3 09:30 isolinux.msg
-rw-r--r-- 1 root root 14190080 Apr  3 09:30 linux
-rw-r--r-- 1 root root    34084 Apr  3 09:30 mboot.c32
-rw-r--r-- 1 root root    54388 Apr  3 09:30 menu.c32



Kiwi Server SLES15 SP5

uname -a
Linux ita237 5.14.21-150500.55.103-default #1 SMP PREEMPT_DYNAMIC Tue May 13 09:00:37 UTC 2025 (1fdbb8b) x86_64 x86_64 x86_64 GNU/Linux
dracut-055+suse.396.g701c6212-150500.3.29.2.x86_64

kiwi-boot-descriptions-1.2.0-2.51.x86_64
kiwi-boot-requires-1.2.0-2.51.x86_64
kiwi-man-pages-10.2.27-lp156.1.1.x86_64
kiwi-systemdeps-bootloaders-10.2.27-lp156.1.1.x86_64
kiwi-systemdeps-containers-9.24.43-150100.3.93.1.x86_64
kiwi-systemdeps-core-10.2.27-lp156.1.1.x86_64
kiwi-systemdeps-disk-images-10.2.27-lp156.1.1.x86_64
kiwi-systemdeps-filesystems-10.2.27-lp156.1.1.x86_64
kiwi-systemdeps-image-validation-9.24.43-150100.3.93.1.x86_64
kiwi-systemdeps-iso-media-10.2.27-lp156.1.1.x86_64
kiwi-tools-9.24.43-150100.3.93.1.x86_64
python311-kiwi-10.2.27-lp156.1.1.x86_64



Build log output:

[ DEBUG   ]: 08:22:47 | --------------out stop--------------
[ INFO    ]: 08:22:47 | Creating system image
[ DEBUG   ]: 08:22:47 | Looking for chroot in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:47 | EXEC: [chroot /global/http/minios-result/build/image-root rpm -q --qf %{VERSION} dracut-kiwi-live]
[ DEBUG   ]: 08:22:47 | Looking for chroot in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:47 | EXEC: [chroot /global/http/minios-result/build/image-root rpm -q --qf %{VERSION} dracut-kiwi-lib]
[ DEBUG   ]: 08:22:47 | Looking for chroot in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:47 | EXEC: [chroot /global/http/minios-result/build/image-root rpm -q --qf %{VERSION} dracut-kiwi-oem-repart]
[ DEBUG   ]: 08:22:47 | Looking for chroot in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:47 | EXEC: [chroot /global/http/minios-result/build/image-root rpm -q --qf %{VERSION} dracut-kiwi-oem-dump]
[ DEBUG   ]: 08:22:47 | Looking for chroot in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:47 | EXEC: [chroot /global/http/minios-result/build/image-root rpm -q --qf %{VERSION} dracut-kiwi-oem-dump]
[ DEBUG   ]: 08:22:47 | Looking for chroot in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:47 | EXEC: [chroot /global/http/minios-result/build/image-root dracut --list-modules --no-kernel]
[ DEBUG   ]: 08:22:47 | Looking for chroot in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:47 | EXEC: [chroot /global/http/minios-result/build/image-root cat /lib/modules/6.4.0-150700.53.3-default/modules.dep]
[ DEBUG   ]: 08:22:47 | Looking for bash in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:47 | EXEC: [bash -c rm -f /global/http/minios-result/build/image-root/recovery.*]
[ INFO    ]: 08:22:47 | Preparing boot system
[ INFO    ]: 08:22:47 | Precalculating required disk size
[ DEBUG   ]: 08:22:47 | Looking for du in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:47 | EXEC: [du -s --apparent-size --block-size 1 --exclude /global/http/minios-result/build/image-root/proc --exclude /global/http/minios-result/build/image-root/sys --exclude /global/http/minios-result/build/image-root/dev /global/http/minios-result/build/image-root]
[ DEBUG   ]: 08:22:47 | Looking for bash in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:47 | EXEC: [bash -c find /global/http/minios-result/build/image-root | wc -l]
[ INFO    ]: 08:22:47 | --> system data with filesystem overhead needs 748 MB
[ INFO    ]: 08:22:47 | Using calculated disk size: 748 MB
[ INFO    ]: 08:22:47 | Creating raw disk image /global/http/minios-result/SLES15-MiniOS-ABC-OEM.INPROGRESS.x86_64-15.7.raw
[ DEBUG   ]: 08:22:47 | Looking for qemu-img in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:47 | EXEC: [qemu-img create /global/http/minios-result/SLES15-MiniOS-ABC-OEM.INPROGRESS.x86_64-15.7.raw 748M]
[ DEBUG   ]: 08:22:47 | Looking for losetup in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:47 | EXEC: [losetup -f --show /global/http/minios-result/SLES15-MiniOS-ABC-OEM.INPROGRESS.x86_64-15.7.raw]
[ DEBUG   ]: 08:22:47 | Looking for systemd-id128 in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:47 | EXEC: [systemd-id128 show]
[ DEBUG   ]: 08:22:47 | Initialize msdos disk
[ DEBUG   ]: 08:22:47 | Looking for sgdisk in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:47 | EXEC: [sgdisk --zap-all /dev/loop2]
[ INFO    ]: 08:22:49 | --> Using all_freeMB for the root(rw) partition if present
[ INFO    ]: 08:22:49 | --> creating root partition [with 0 clone(s)]
[ DEBUG   ]: 08:22:49 | p.lxroot: fdisk: n p 1 cur_position +all_freeM w q
[ DEBUG   ]: 08:22:49 | Looking for bash in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:49 | EXEC: [bash -c cat /var/tmp/kiwi_r6jjlzv5 | fdisk /dev/loop2]
[ DEBUG   ]: 08:22:49 | EXEC: Failed with stderr: Re-reading the partition table failed.: Invalid argument
, stdout:
Welcome to fdisk (util-linux 2.37.4).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x4c1e3451.

Command (m for help): Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): Partition number (1-4, default 1): First sector (2048-1531903, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-1531903, default 1531903):
Created a new partition 1 of type 'Linux' and of size 747 MiB.

Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.

The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or partx(8).


[ DEBUG   ]: 08:22:49 | potential fdisk errors were ignored
[ DEBUG   ]: 08:22:49 | Looking for sfdisk in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:49 | EXEC: [sfdisk -c /dev/loop2 1 83]
[ INFO    ]: 08:22:49 | --> setting active flag to primary boot partition
[ DEBUG   ]: 08:22:49 | Looking for parted in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:49 | EXEC: [parted /dev/loop2 set 1 boot on]
[ INFO    ]: 08:22:49 | --> setting start sector to: 2048
[ DEBUG   ]: 08:22:49 | Looking for lsblk in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:49 | EXEC: [lsblk -r -o NAME,TYPE /dev/loop2]
[ DEBUG   ]: 08:22:49 | fdisk: d 1 n p 1 2048 w q
[ DEBUG   ]: 08:22:49 | Looking for bash in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:49 | EXEC: [bash -c cat /var/tmp/kiwi_fwe2iop_ | fdisk /dev/loop2]
[ DEBUG   ]: 08:22:49 | EXEC: Failed with stderr: 1: unknown command
Re-reading the partition table failed.: Invalid argument
, stdout:
Welcome to fdisk (util-linux 2.37.4).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): Selected partition 1
Partition 1 has been deleted.

Command (m for help):
Command (m for help): Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): Partition number (1-4, default 1): First sector (2048-1531903, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-1531903, default 1531903):
Created a new partition 1 of type 'Linux' and of size 747 MiB.

Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.

The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or partx(8).


[ DEBUG   ]: 08:22:49 | potential fdisk errors were ignored
[ DEBUG   ]: 08:22:49 | Looking for partx in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:49 | EXEC: [partx --add /dev/loop2]
[ INFO    ]: 08:22:49 | Creating root(ext4) filesystem on /dev/loop2p1
[ DEBUG   ]: 08:22:49 | Looking for mkfs.ext4 in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:49 | EXEC: [mkfs.ext4 -L ROOT -U b37b42e6-1cb2-461f-80d1-52f016ea6293 /dev/loop2p1]
[ DEBUG   ]: 08:22:49 | Looking for blkid in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:49 | EXEC: [blkid /dev/loop2p1 -s PARTUUID -o value]
[ DEBUG   ]: 08:22:49 | Looking for blkid in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:49 | EXEC: [blkid /dev/loop2p1 -s UUID -o value]
[ INFO    ]: 08:22:49 | Creating config.partids in boot system
[ INFO    ]: 08:22:49 | Export modprobe configuration
[ DEBUG   ]: 08:22:49 | Creating directory /global/http/minios-result/build/image-root/etc
[ DEBUG   ]: 08:22:49 | Check for extended attributes on /global/http/minios-result/build/image-root/etc/ said: [Errno 61] No data available: '/global/http/minios-result/build/image-root/etc/'
[ DEBUG   ]: 08:22:49 | Looking for rsync in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:49 | EXEC: [rsync -a /global/http/minios-result/build/image-root/etc/modprobe.d /global/http/minios-result/build/image-root/etc/]
[ INFO    ]: 08:22:49 | Creating image identifier: 0x9b9b1f65
[ INFO    ]: 08:22:49 | Creating generic system etc/fstab
[ DEBUG   ]: 08:22:49 | Looking for blkid in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:49 | EXEC: [blkid /dev/loop2p1 -s TYPE -o value]
[ DEBUG   ]: 08:22:49 | Looking for blkid in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:49 | EXEC: [blkid /dev/loop2p1 -s UUID -o value]
[ INFO    ]: 08:22:49 | Creating generic dracut initrd archive
[ DEBUG   ]: 08:22:49 | Looking for cp in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:49 | EXEC: [cp /var/tmp/kiwi_ttxgu4d1 /var/tmp/kiwi_cu9nj4v_]
[ DEBUG   ]: 08:22:49 | Looking for bash in /sbin:/usr/sbin:/usr/local/sbin:/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/usr/bin:/usr/local/bin:/opt/VRTS/bin:/etc/vx/bin:/lfs/xen/bin
[ DEBUG   ]: 08:22:49 | EXEC: [bash -c source /usr/lib/python3.11/site-packages/kiwi/config/functions.sh; baseQuoteFile /var/tmp/kiwi_cu9nj4v_]
[ DEBUG   ]: 08:22:49 | --> kiwi_align='1048576'
[ DEBUG   ]: 08:22:49 | --> kiwi_boot_timeout='5'
[ DEBUG   ]: 08:22:49 | --> kiwi_bootkernel=''
[ DEBUG   ]: 08:22:49 | --> kiwi_bootloader='grub2'
[ DEBUG   ]: 08:22:49 | --> kiwi_bootloader_console='console:console'
[ DEBUG   ]: 08:22:49 | --> kiwi_bootprofile=''
[ DEBUG   ]: 08:22:49 | --> kiwi_btrfs_root_is_snapper_snapshot=''
[ DEBUG   ]: 08:22:49 | --> kiwi_btrfs_root_is_snapshot=''
[ DEBUG   ]: 08:22:49 | --> kiwi_cmdline='rd.kiwi.ramdisk ramdisk_size=4096000 splash'
[ DEBUG   ]: 08:22:49 | --> kiwi_compressed=''
[ DEBUG   ]: 08:22:49 | --> kiwi_delete='Mesa cracklib-dict-full fillup gdbm glibc-locale glibc-locale-base info insserv logrotate make mingetty pam-modules perl-Bootloader permissions python python-base'
[ DEBUG   ]: 08:22:49 | --> kiwi_devicepersistency=''
[ DEBUG   ]: 08:22:49 | --> kiwi_displayname='SLES15-MiniOS-ABC-OEM.INPROGRESS'
[ DEBUG   ]: 08:22:49 | --> kiwi_drivers=''
[ DEBUG   ]: 08:22:49 | --> kiwi_firmware=''
[ DEBUG   ]: 08:22:49 | --> kiwi_fsmountoptions=''
[ DEBUG   ]: 08:22:49 | --> kiwi_gpt_hybrid_mbr=''
[ DEBUG   ]: 08:22:49 | --> kiwi_hybridpersistent=''
[ DEBUG   ]: 08:22:49 | --> kiwi_hybridpersistent_filesystem=''
[ DEBUG   ]: 08:22:49 | --> kiwi_iname='SLES15-MiniOS-ABC-OEM.INPROGRESS'
[ DEBUG   ]: 08:22:49 | --> kiwi_initrd_system='dracut'
[ DEBUG   ]: 08:22:49 | --> kiwi_install_volid='INSTALL'
[ DEBUG   ]: 08:22:49 | --> kiwi_installboot='install'
[ DEBUG   ]: 08:22:49 | --> kiwi_iversion='15.7'
[ DEBUG   ]: 08:22:49 | --> kiwi_keytable='us'
[ DEBUG   ]: 08:22:49 | --> kiwi_language='en_US'

Thank you.

Marcus Schäfer

unread,
Jul 15, 2025, 11:13:10 AMJul 15
to kiwi-...@googlegroups.com
Hi,

sorry I can't reproduce this. Can you please provide a complete
log file from a failed attempt ?

Thanks

Regards,
Marcus
--
Public Key available via: https://keybase.io/marcus_schaefer/key.asc
keybase search marcus_schaefer
signature.asc

Jan Robinson

unread,
Jul 16, 2025, 2:01:35 AMJul 16
to kiwi
Thank you Marcus.

The debug log.

Regards,
Jan
miniosoem.log

Marcus Schäfer

unread,
Jul 16, 2025, 9:46:59 AMJul 16
to kiwi-...@googlegroups.com
Hi,

> The debug log.

Hmm, I'm a bit confused. You sent along two logs:

* miniosoem.log
* uefiminios.log

both log files shows successful builds:

[ INFO ]: 11:04:08 | Result files:
[ INFO ]: 11:04:08 | --> disk_image: /global/http/minios-result/SLES15-MiniOS-ABC-OEM.INPROGRESS.x86_64-15.7.raw

[ INFO ]: 11:37:55 | Result files:
[ INFO ]: 11:37:55 | --> disk_image: /global/http/uefiminios-result/SLES15-MiniOS-ABC-OEM.INPROGRESS.x86_64-15.7.raw

You said your build did not complete. The log files however, did
not show me an issue.

I would expect the following to work for testing the boot capabilities:

qemu-kvm \
-cpu Broadwell-v2 \
-m 4096 \
-netdev user,id=user0 \
-device virtio-net-pci,netdev=user0 \
-serial stdio \
-hda /global/http/minios-result/SLES15-MiniOS-ABC-OEM.INPROGRESS.x86_64-15.7.raw

and:

qemu-kvm \
-cpu Broadwell-v2 \
-m 4096 \
-netdev user,id=user0 \
-device virtio-net-pci,netdev=user0 \
-serial stdio \
-bios /usr/share/qemu/ovmf-x86_64-ms.bin \
-hda /global/http/uefiminios-result/SLES15-MiniOS-ABC-OEM.INPROGRESS.x86_64-15.7.raw

Therefore maybe a stupid question; What's the actual issue ?

Thanks

Regards,
Marcus
--
Public Key available via: https://keybase.io/marcus_schaefer/key.asc
keybase search marcus_schaefer
-------------------------------------------------------
Marcus Schäfer Brunnenweg 18
Tel: +49 7562 905437 D-88260 Argenbühl
Germany
-------------------------------------------------------
signature.asc

Jan Robinson

unread,
Jul 16, 2025, 11:05:07 AMJul 16
to kiwi
Hi Marcus.

Sorry for the vagueness.

The issue is, the the created ISO files do not boot from the virtual DVD.
The '.raw' files are not in play yet.

The  ' isolinux.bin' is missing  in the iso.
/boot/x86_64/loader/

Maybe SP7 works differently?

Regards, 
Jan

Marcus Schäfer

unread,
Jul 16, 2025, 11:39:35 AMJul 16
to kiwi-...@googlegroups.com
Hi Jan,

> The issue is, the the created ISO files do not boot from the virtual
> DVD.

Ok, it's about booting

> The ' isolinux.bin' is missing in the iso.
> /boot/x86_64/loader/

isolinux.bin is syslinux and syslinux is deprecated since
quite some time. kiwi dropped support for syslinux early 2024.
The boot from ISO is done by the selected bootloader. Your
image selected grub, therefore grub is used as you can also
see from the log:

---
[ DEBUG ]: 11:03:58 | Copying loader files to /global/http/minios-result/build/image-root/image/loader/
[ DEBUG ]: 11:03:58 | --> Copying /global/http/minios-result/build/image-root/usr/share/grub2/i386-pc/eltorito.img
[ DEBUG ]: 11:03:58 | --> Copying /global/http/minios-result/build/image-root/usr/share/grub2/i386-pc/boot_hybrid.img
...
[ DEBUG ]: 11:04:06 | EXEC: [/usr/bin/xorriso -application_id 0x9f37eb93 -volid INSTALL -joliet on -padding 0 -compliance no_emul_toc -outdev /global/http/minios-result/SLES15-MiniOS-ABC-OEM.INPROGRESS.x86_64-15.7.install.iso -map /global/http/minios-result/kiwi_install_media._gyc9odp / -chmod 0755 / -- -boot_image grub bin_path=boot/x86_64/loader/eltorito.img -boot_image grub grub2_mbr=/global/http/minios-result/kiwi_install_media._gyc9odp/boot/x86_64/loader/boot_hybrid.img -boot_image grub grub2_boot_info=on -boot_image any partition_offset=16 -boot_image any cat_path=boot/x86_64/boot.catalog -boot_image any cat_hidden=on -boot_image any boot_info_table=on -boot_image any platform_id=0x00 -boot_image any emul_type=no_emulation -boot_image any load_size=2048]
---

So let's first double check if the produced ISO is really broken.

Can you please call

qemu-kvm -cpu Broadwell-v2 -m 4096 -serial stdio -cdrom /global/http/minios-result/SLES15-MiniOS-ABC-OEM.INPROGRESS.x86_64-15.7.install.iso

This should boot and show you a grub menu

yes/no ?

If yes, the issue is with your virtual DVD... whatever that is.
I guess VMware Virtual DVD rom ? In this case check your VM guest
config if the DVD is exposed as SCSI device and the ISO is attached
directly.

If no, can you provide the ISO file, so I can inspect it more
closely ?

> Maybe SP7 works differently?

I doubt this is related to the version of SLES. I'm thinking
more in the direction of the conversation we had about xorriso
together with Adam Williamson from RedHat.

See here:

https://github.com/OSInside/kiwi/pull/2695
https://github.com/OSInside/kiwi/issues/2685

Let us know what you'll find
signature.asc

Jan Robinson

unread,
Jul 17, 2025, 10:14:54 AMJul 17
to kiwi
Hello Marcus

A step further with the note on ' eltorito.img' It helped a lot.

Booting the ISO BIOS boot image with qemu.

It comes up with :

"Reading /dev/image/*.md5sum"

Then to this:

[  OK  ] Reached target Remote Encrypted Volumes.
[  OK  ] Reached target Remote File Systems.
         Starting dracut pre-mount hook...
[    2.801747] dracut-pre-mount[885]: Warning: Could not find by-id representation of ram0
[    2.802939] dracut-pre-mount[885]: Warning: Using original device /dev/ram0
[    2.821730] dracut-pre-mount[907]: Warning: Could not find by-id representation of ram1
[    2.822865] dracut-pre-mount[907]: Warning: Using original device /dev/ram1
[    2.841673] dracut-pre-mount[929]: Warning: Could not find by-id representation of ram10
[    2.842807] dracut-pre-mount[929]: Warning: Using original device /dev/ram10
[    2.861688] dracut-pre-mount[951]: Warning: Could not find by-id representation of ram11
[    2.862845] dracut-pre-mount[951]: Warning: Using original device /dev/ram11
[    2.881696] dracut-pre-mount[973]: Warning: Could not find by-id representation of ram12
[    2.882839] dracut-pre-mount[973]: Warning: Using original device /dev/ram12
[    2.901677] dracut-pre-mount[995]: Warning: Could not find by-id representation of ram13
[    2.902813] dracut-pre-mount[995]: Warning: Using original device /dev/ram13
[    2.921693] dracut-pre-mount[1017]: Warning: Could not find by-id representation of ram14

Then a reboot circle starts.

  │ Select Installation Disk                                                │
  │ ┌─────────────────────────────────────────────────────────────────────┐ │
  │ │                          /dev/ram0   3.9G                           │ │
  │ │                          /dev/ram1   3.9G                           │ │
  │ │                          /dev/ram10  3.9G                           │ │
  │ │                          /dev/ram11  3.9G                           │ │
  │ │                          /dev/ram12  3.9G                           │ │
  │ │                          /dev/ram13  3.9G                           │ │
  │ │                          /dev/ram14  3.9G                           │ │
  │ │                          /dev/ram15  3.9G                           │ │
  │ │                          /dev/ram2   3.9G                           │ │
  │ │                          /dev/ram3   3.9G                           │ │
  │ │                          /dev/ram4   3.9G                           │ │
  │ │                          /dev/ram5   3.9G                           │ │
  │ │                          /dev/ram6   3.9G                           │ │
  │ └────┴(+)─────────────────────────────────────────────────────81%─────┘ │
  ├─────────────────────────────────────────────────────────────────────────┤
  │                     <  OK  >           <Cancel>  

Select ram0, then the below.

┌──────────────────────────────────────────────────────────────────────────────┐
│ Reading /run/image/*.md5 failed                                              │
├──────────────────────────────────────────────────────────────────────────────┤
│                                   <  OK  >                                   │
└──────────────────────────────────────────────────────────────────────────────┘

Press OK


[  OK  ] Finished Dracut Run Interactive.
[  144.288047] dracut-pre-mount[1649]: Rebooting.

I'll continue tomorrow maybe a debug kernel to get more info.

Thank you.

Marcus Schäfer

unread,
Jul 17, 2025, 11:09:25 AMJul 17
to kiwi-...@googlegroups.com
Hi,

> "Reading /dev/image/*.md5sum"

Ah ok I think I know what happened. So md5 is insecure and unsupported
which is the reason why md5 was dropped in favor of sha256. See
here for details:

https://github.com/OSInside/kiwi/pull/2699

So as you can see this changes the code in kiwi to produce sha256 sums
and it also changes the appropriate initrd code that reads the
new sum files.

This means if you build your image with a version of kiwi that has
moved to sha256 sums but still using older dracut modules which
still checks for md5 sums you will be facing this problem.

So I guess you are building for SLES and the dracut-kiwi-xxx module
packages are taken from SLES repos (still old and using md5) but your
kiwi is one that is newer and has already been moved to sha256

To prove this you can consider to add the kiwi repo from here as
a <repository> to your image build:

https://download.opensuse.org/repositories/Virtualization:/Appliances:/Builder/openSUSE_Leap_15.6/

The openSUSE_Leap_15.6 repo is compatible with SLE15. If your build
now takes the dracut-kiwi-xxx module packages from that repo things
should start to work.

If that fixes it, we need to find a proper solution to that
inconsistency that works for you.

As of today the drop of md5 has not yet been ported into SLES15.
This means a mix of new kiwi with dracut-kiwi-xxx module packages
from SLES15 is not fully compatible depending on the used
features.

Even though we aim to support a lot of distributions, SLE15
is actually not on the list of supported distros for the kiwi
v10.x.x code base. See:

https://osinside.github.io/kiwi/overview.html#system-requirements

Let us know if we are on the right track here.
signature.asc

Jan Robinson

unread,
Jul 18, 2025, 3:17:11 AMJul 18
to kiwi
Hi Marcus

The Leap repo was included:

Boot goes past the md5 problem.

Version from .packages file.
dracut-kiwi-lib|(none)|10.0.27|lp155.1.1|x86_64|obs://build.opensuse.org/Virtualization:Appliances:Builder/openSUSE_Leap_15.5/902ce5e5361611592268a159086878c3-python-kiwi|GPL-3.0-or-later
dracut-kiwi-live|(none)|10.2.5|lp155.1.2|x86_64|obs://build.opensuse.org/Virtualization:Appliances:Builder/openSUSE_Leap_15.5/b9728852bf874b8aaa2af524c93b2205-python-kiwi|GPL-3.0-or-later
dracut-kiwi-oem-dump|(none)|10.0.27|lp155.1.1|x86_64|obs://build.opensuse.org/Virtualization:Appliances:Builder/openSUSE_Leap_15.5/902ce5e5361611592268a159086878c3-python-kiwi|GPL-3.0-or-later
dracut-kiwi-oem-repart|(none)|10.0.27|lp155.1.1|x86_64|obs://build.opensuse.org/Virtualization:Appliances:Builder/openSUSE_Leap_15.5/902ce5e5361611592268a159086878c3-python-kiwi|GPL-3.0-or-later

The new error:

snippet from /run/initramfs/rdsosreport.txt (attached)
'
[    2.635914] localhost systemd[1]: Reached target Remote File Systems.
[    2.644134] localhost systemd[1]: Starting dracut pre-mount hook...
[    2.655383] localhost dracut-pre-mount[616]: //lib/dracut/hooks/pre-mount/30-kiwi-dump-image.sh: line 58: syntax error near unexpected token `<'
[    2.657315] localhost dracut-pre-mount[616]: //lib/dracut/hooks/pre-mount/30-kiwi-dump-image.sh: line 58: `        < <(printf '%s\0' "${device_array[@]}" | sort -z)'
[    2.657315] localhost dracut-pre-mount[616]: //lib/dracut/hooks/pre-mount/40-kiwi-dump-reboot-system.sh: line 4: /lib/kiwi-dump-image.sh: No such file or directory
[    2.669253] localhost systemd[1]: Finished dracut pre-mount hook.
'


:/root# less /lib/dracut/hooks/pre-mount/40-kiwi-dump-reboot-system.sh
#!/bin/bash
type initialize >/dev/null 2>&1 || . /lib/kiwi-lib.sh
type report_and_quit >/dev/null 2>&1 || . /lib/kiwi-dump-image.sh
type get_selected_disk >/dev/null 2>&1 || . /lib/kiwi-dump-image.sh
type run_dialog >/dev/null 2>&1 || . /lib/kiwi-dialog-lib.sh

#======================================
# Functions
#--------------------------------------
function boot_installed_system {
    declare kiwi_oemreboot=${kiwi_oemreboot}
    declare kiwi_oemrebootinteractive=${kiwi_oemrebootinteractive}
    declare kiwi_oemshutdown=${kiwi_oemshutdown}
    declare kiwi_oemshutdowninteractive=${kiwi_oemshutdowninteractive}
    local ask_reboot_text="Reboot System ?"
    local ask_shutdown_text="Shutdown System ?"
    local boot_options
    kiwi_oemreboot=$(bool "${kiwi_oemreboot}")
    kiwi_oemrebootinteractive=$(bool "${kiwi_oemrebootinteractive}")
    kiwi_oemshutdown=$(bool "${kiwi_oemshutdown}")
    kiwi_oemshutdowninteractive=$(bool "${kiwi_oemshutdowninteractive}")

    if [ "${kiwi_oemrebootinteractive}" = "true" ];then
less end ----

:/root# ls -l /lib/kiwi-*
-rw-r--r-- 1 root root  5152 May  6 17:11 /lib/kiwi-dialog-lib.sh
-rw-r--r-- 1 root root  4026 May  6 17:11 /lib/kiwi-filesystem-lib.sh
-rw-r--r-- 1 root root  7159 May  6 17:11 /lib/kiwi-lib.sh
-rw-r--r-- 1 root root  4528 May  6 17:11 /lib/kiwi-luks-lib.sh
-rw-r--r-- 1 root root  5256 Apr 18  2024 /lib/kiwi-lvm-lib.sh
-rw-r--r-- 1 root root   763 Apr 18  2024 /lib/kiwi-mdraid-lib.sh
-rw-r--r-- 1 root root  2471 Apr 18  2024 /lib/kiwi-net-lib.sh
-rw-r--r-- 1 root root 15302 May  6 17:11 /lib/kiwi-partitions-lib.sh
:/root#

Thanks again.
rdsosreport-sp7.txt

Marcus Schäfer

unread,
Jul 18, 2025, 4:07:32 AMJul 18
to kiwi-...@googlegroups.com
Hi Jan,

> Hi Marcus
> The Leap repo was included:
> Boot goes past the md5 problem.

ok

> The new error:
> //lib/dracut/hooks/pre-mount/30-kiwi-dump-image.sh: line 58: syntax
> error near unexpected token `<'

Huh what ? That is a new one and I don't get why it's a syntax
error on your end. The code to this is:

readarray -td '' list_items_sorted \
< <(printf '%s\0' "${device_array[@]}" | sort -z)

shellcheck does not complain and a simple test like this:

device_array=("a" "z" "b")
readarray -td '' list_items_sorted \
< <(printf '%s\0' "${device_array[@]}" | sort -z)
echo ${list_items_sorted[@]}

has no issues.

The sorting of the devices has been added recently and I tested
the above on SLES15.

Can you do the following. Repeat the installation with:

rd.debug rd.shell

This should drop you into an emergency shell inside of the initrd.
In that shell, cut and paste the above test code. Does it work.

Next call:

journalctl > journal

If possible provide the journal file for a closer look. If not
check the value of device_array and let us know the contents.

Sorry for this one, we have to fix it
signature.asc

Marcus Schäfer

unread,
Jul 18, 2025, 4:27:11 AMJul 18
to kiwi-...@googlegroups.com
Hi Jan,

> Huh what ? That is a new one and I don't get why it's a syntax
> error on your end. The code to this is:
>
> readarray -td '' list_items_sorted \
> < <(printf '%s\0' "${device_array[@]}" | sort -z)

Oh I'm stupid. Inside of the initrd the shell is called as "sh"
which restricts itself to features found in the POSIX standard.
The above code is not POSIX like and therefore fails in this
environment.

I'll fix it
signature.asc

Jan Robinson

unread,
Jul 18, 2025, 4:29:12 AMJul 18
to kiwi
Appreciated.

Marcus Schäfer

unread,
Jul 18, 2025, 4:46:12 AMJul 18
to kiwi-...@googlegroups.com
Hi Jan,

> Appreciated.

Here is the PR to fix this

* https://github.com/OSInside/kiwi/pull/2862

I built a Staging kiwi that has among other fixes also this
one included.

Can you build your image with the <repository> changed
from :Builder to:

https://download.opensuse.org/repositories/Virtualization:/Appliances:/Staging/openSUSE_Leap_15.6/

The Staging area is our target for testing fixes prior updating
the :Builder project. You can always use it for smoke testing

I hope this moves us forward

Thanks
signature.asc

Jan Robinson

unread,
Jul 18, 2025, 5:53:01 AMJul 18
to kiwi
Hi Marcus

The image boots  well with qemu.

Busy with a physical server.

Thanks mil.

Jan Robinson

unread,
Jul 18, 2025, 7:28:09 AMJul 18
to kiwi
Hi Marcus

The BIOS ISO is now booting fine on a physical server.

The UEFI boot will probably boot now as well.

Thanks so much for the help.
Have a good weekend.

Regards,
Jan

Marcus Schäfer

unread,
Jul 18, 2025, 7:57:25 AMJul 18
to kiwi-...@googlegroups.com
Hi Jan,

> Hi Marcus
> The BIOS ISO is now booting fine on a physical server.
> The UEFI boot will probably boot now as well.
> Thanks so much for the help.

Great, thanks much for the feedback :)

Have a good weekend.

Regards,
signature.asc
Reply all
Reply to author
Forward
0 new messages