error initrd oem-repart

15 views
Skip to first unread message

Sébastien.

unread,
May 10, 2025, 11:23:59 AMMay 10
to kiwi
Hi,

For an older application i need to generate obsolete debian stretch.
The generation of raw and iso install works but when i boot on virtual machine to test, I get this error message :

Capture d’écran 2025-05-10 172057.png

My config.xml : 
<?xml version="1.0" encoding="utf-8"?>

<image schemaversion="7.3" name="Debian-Stretch_appliance">
    <description type="system">
        <author>Marcus Schäfer</author>
        <contact>m...@suse.de</contact>
        <specification>Debian Stretch Appliance</specification>
    </description>
    <profiles>
        <profile name="Disk" description="Simple Disk image" import="true"/>
    </profiles>
    <preferences>
        <version>9.25.0</version>
        <packagemanager>apt</packagemanager>
        <locale>fr_FR</locale>
        <keytable>fr</keytable>
        <timezone>Europe/Paris</timezone>
    </preferences>
   <preferences profiles="Disk">
        <type image="oem" filesystem="ext4" firmware="efi" initrd_system="dracut" installiso="true" installboot="install" kernelcmdline="console=ttyS0" fscreateoptions="-O ^metadata_csum_seed">
            <bootloader name="grub2" console="serial" timeout="10"/>
            <oemconfig>
                <oem-swap>true</oem-swap>
                <oem-unattended>true</oem-unattended>
                <oem-device-filter>/dev/ram</oem-device-filter>
                <oem-multipath-scan>false</oem-multipath-scan>
            </oemconfig>
        </type>
    </preferences>
    <users>
        <user password="$1$wYJUgpM5$RXMMeASDc035eX.NbYWFl0" home="/root" name="root" groups="root"/>
    </users>
  <repository type="apt-deb" distribution="stable" repository_gpgcheck="false">
        <source path="file:///mnt/kiwi/debian"/>
    </repository>
    <repository type="apt-deb" distribution="stretch" components="main contrib" repository_gpgcheck="false">
       <source path="file:///mnt/debian/" />
</repository>
   <packages type="image">
        <package name="vim"/>
        <!--<package name="shim"/>-->
        <package name="grub-efi-amd64"/>
        <package name="dracut"/>
        <package name="dracut-network"/>
        <package name="dracut-core"/>
        <package name="dracut-config-generic"/>
        <package name="dracut-config-rescue"/>
        <package name="xz-utils"/>
        <package name="binutils"/>
        <package name="linux-image-amd64"/>
        <!--<package name="isolinux"/>
        <package name="syslinux"/>
        <package name="syslinux-common"/>-->
        <package name="init"/>
        <package name="gnupg"/>
        <package name="iproute2"/>
        <package name="iptables"/>
        <package name="iputils-ping"/>
        <package name="ifupdown"/>
        <!--<package name="isc-dhcp-client"/>-->
        <package name="netbase"/>
        <package name="bsdmainutils"/>
        <package name="console-setup"/>
        <package name="ncurses-base"/>
        <package name="ncurses-bin"/>
        <package name="base-files"/>
    </packages>
    <packages type="oem">
        <package name="dracut-kiwi-oem-repart"/>
        <package name="dracut-kiwi-oem-dump"/>
<package name="dracut-kiwi-lib"/>
    </packages>
    <packages type="bootstrap">
     <package name="linux-image-amd64"/>
        <package name="grub2"/>
        <package name="apt-utils"/>
        <package name="libc-bin"/>
        <package name="tar"/>
        <package name="openrc"/>
        <package name="dpkg"/>
        <package name="bash"/>
    </packages>
</image>

debian packages kiwi : 
dracut-kiwi-lib_9.25.22-3.1_amd64
dracut-kiwi-oem-dump_9.25.22-3.1_amd64
dracut-kiwi-oem-repart_9.25.22-3.1_amd64

and i use a loop device with the last debian stretch iso

thanks for your help

Marcus Schäfer

unread,
May 12, 2025, 8:28:06 AMMay 12
to kiwi-...@googlegroups.com
Hi,

> For an older application i need to generate obsolete debian stretch.
> The generation of raw and iso install works but when i boot on virtual
> machine to test, I get this error message :
>
> Capture d’écran 2025-05-10 172057.png

The dracut code you installed (dracut-kiwi-lib_9.25.22-3.1_amd64.deb)
tries to created the service file at:

/usr/lib/systemd/system/dracut-run-interactive.service

I guess the distribution (debian stretch) has not yet done the move
to /usr and probably packaged all of systemd at "/lib/systemd/"
which can lead to the error you saw, because "/usr/lib/systemd"
does not exist.

In the current version of kiwi the service file is created at

/run/systemd/system/dracut-run-interactive.service

To debug the situation and check if the above makes sense or not
you can repeat the boot process and add:

rd.debug rd.shell

To the kernel command line. In case of an error you get dropped
to a debug shell and can check how things really looks like.

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

Sébastien FINET

unread,
May 13, 2025, 12:55:57 PMMay 13
to kiwi-...@googlegroups.com
Thanks for the answsers
Look at the attachment file "boot.kiwi"

i have try to update dracut-kiwi-oem-repart , dump and lib but i have an error about checksum sha256 not found in /run/images/*.sha256 (issue close in github kiwi).

Regards,
Sébastien

--
You received this message because you are subscribed to the Google Groups "kiwi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kiwi-images...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/kiwi-images/aCHpN61CpGrah3u4%40asterix.


--
Cordialement,
Sébastien FINET
boot.kiwi

Marcus Schäfer

unread,
May 14, 2025, 6:54:00 AMMay 14
to kiwi-...@googlegroups.com
Hi,

> Look at the attachment file "boot.kiwi"
> i have try to update dracut-kiwi-oem-repart , dump and lib but i have
> an error about checksum sha256 not found in /run/images/*.sha256 (issue
> close in github kiwi).

I could not see the mentioned checksum error in the attached boot.kiwi.
I saw the original error though

Regarding the checksum error I can imagine an inconsistency between
the dracut code and kiwi builder code. We recently dropped all md5
checksum code because md5 is obsolete. See here:

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

So if you build the image make sure the version of kiwi fits with
the version of the dracut modules.

Hope this helps
signature.asc

Sébastien FINET

unread,
May 14, 2025, 10:25:25 AMMay 14
to kiwi-...@googlegroups.com

Boot.kiwi is with :

dracut-kiwi-lib_9.25.22-3.1_amd64
dracut-kiwi-oem-dump_9.25.22-3.1_amd64
dracut-kiwi-oem-repart_9.25.22-3.1_amd64
Kiwi 9.25.22


--
You received this message because you are subscribed to the Google Groups "kiwi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kiwi-images...@googlegroups.com.

Sébastien FINET

unread,
May 14, 2025, 10:29:51 AMMay 14
to kiwi-...@googlegroups.com

The error checksum is with 10.21.X.
The attachement is with 9.25.22 (kiwi + kiwi oem repart and dump)
You dont have an older debian packages who was in obs repo ?

Marcus Schäfer

unread,
May 14, 2025, 11:31:50 AMMay 14
to kiwi-...@googlegroups.com
Hi,

> The error checksum is with 10.21.X.
> The attachement is with 9.25.22 (kiwi + kiwi oem repart and dump)
> You dont have an older debian packages who was in obs repo ?

I do have:

https://build.opensuse.org/project/show/Virtualization:Appliances:Builder:Deprecated

which provides an Ubuntu jammy build of an old v9 version.
But to be honest I do not maintain this version. It's deprecated.
We can certainly add another build target to this v9 buid, but I won't
have time to fix anything in this code path
signature.asc
Reply all
Reply to author
Forward
0 new messages