Building Tumbleweed based ISO image:
Hi, I try to create ISO image based on openSUSE Tumbleweed in openSUSE Build Service. But I get error: EXEC: [chroot /usr/src/packages/KIWI-iso/build/image-root dracut --verbose --no-hostonly --no-hostonly-cmdline --install /.profile --add kiwi-live pollcdrom --omit multipath Lietukas_T_mini.x86_64-2021.initrd 6.7.1-2-default] EXEC: Failed with stderr: (no output on stderr), stdout: /usr/bin/dracut: line 1070: /sys/module/firmware_class/parameters/path: No such file or directory [ 351s] dracut[F]: Cannot find module directory /lib/modules/6.7.1-2-default/ [ 351s] dracut[F]: and --no-kernel was not specified See full log here: - https://build.opensuse.org/package/live_build_log/home:embar-:Lietukas/Lietu... - https://paste.opensuse.org/pastes/a8072f79bbc4 (copy of today build log) See image configuration here: https://build.opensuse.org/package/show/home:embar-:Lietukas/Lietukas_T_mini Can you please help to figure out how to fix error? -- Regards, Mindaugas
On Montag, 29. Januar 2024, 11:14:19 CET opensuse.lietuviu.kalba wrote:
Hi,
I try to create ISO image based on openSUSE Tumbleweed in openSUSE Build Service. But I get error:
EXEC: [chroot /usr/src/packages/KIWI-iso/build/image-root dracut --verbose --no-hostonly --no-hostonly-cmdline --install /.profile --add kiwi-live pollcdrom --omit multipath Lietukas_T_mini.x86_64-2021.initrd 6.7.1-2-default]
EXEC: Failed with stderr: (no output on stderr), stdout: /usr/bin/dracut: line 1070: /sys/module/firmware_class/parameters/path: No such file or directory [ 351s] dracut[F]: Cannot find module directory /lib/modules/6.7.1-2-default/ [ 351s] dracut[F]: and --no-kernel was not specified
See full log here:
- https://build.opensuse.org/package/live_build_log/home:embar-:Lietukas/Lietu...
- https://paste.opensuse.org/pastes/a8072f79bbc4 (copy of today build log)
See image configuration here: https://build.opensuse.org/package/show/home:embar-:Lietukas/Lietukas_T_mini
Factory broke kernel depending builds by disabling the kernel-obs-build package. This has been reverted, so this should build again. -- Adrian Schroeter <adrian@suse.de> Build Infrastructure Project Manager SUSE Software Solutions Germany GmbH, Frankenstraße 146, 90461 Nürnberg, Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Ivo Totev
2024-01-29 12:58, Adrian Schröter rašė:
On Montag, 29. Januar 2024, 11:14:19 CET opensuse.lietuviu.kalba wrote:
Hi,
I try to create ISO image based on openSUSE Tumbleweed in openSUSE Build Service. But I get error:
EXEC: [chroot /usr/src/packages/KIWI-iso/build/image-root dracut --verbose --no-hostonly --no-hostonly-cmdline --install /.profile --add kiwi-live pollcdrom --omit multipath Lietukas_T_mini.x86_64-2021.initrd 6.7.1-2-default]
EXEC: Failed with stderr: (no output on stderr), stdout: /usr/bin/dracut: line 1070: /sys/module/firmware_class/parameters/path: No such file or directory [ 351s] dracut[F]: Cannot find module directory /lib/modules/6.7.1-2-default/ [ 351s] dracut[F]: and --no-kernel was not specified
See full log here:
- https://build.opensuse.org/package/live_build_log/home:embar-:Lietukas/Lietu...
- https://paste.opensuse.org/pastes/a8072f79bbc4 (copy of today build log)
See image configuration here: https://build.opensuse.org/package/show/home:embar-:Lietukas/Lietukas_T_mini Factory broke kernel depending builds by disabling the kernel-obs-build package.
This has been reverted, so this should build again.
Thanks for investigation. However, I still have some error. Strange, I see 2-days-old kernel-default and kernel-obs-build having same version 6.7.1-2.1 https://build.opensuse.org/projects/openSUSE:Factory/packages/kernel-source:... https://build.opensuse.org/projects/openSUSE:Factory/packages/kernel-source:... From where kernel-obs-build then comes? -- Regards, Mindaugas
2024-01-29 14:08, opensuse.lietuviu.kalba rašė:
2024-01-29 12:58, Adrian Schröter rašė:
On Montag, 29. Januar 2024, 11:14:19 CET opensuse.lietuviu.kalba wrote:
<...> But I get error:
EXEC: [chroot /usr/src/packages/KIWI-iso/build/image-root dracut --verbose --no-hostonly --no-hostonly-cmdline --install /.profile --add kiwi-live pollcdrom --omit multipath Lietukas_T_mini.x86_64-2021.initrd 6.7.1-2-default]
EXEC: Failed with stderr: (no output on stderr), stdout: /usr/bin/dracut: line 1070: /sys/module/firmware_class/parameters/path: No such file or directory <...> Cannot find module directory /lib/modules/6.7.1-2-default/ <...>
See image configuration here: https://build.opensuse.org/package/show/home:embar-:Lietukas/Lietukas_T_mini
Indeed, /lib/modules directory does not exist in image-root during execution of config.sh script. Strange. By the way, I found that file /sys/module/firmware_class/parameters/path does exist indeed in image-root. Why it is not seen during creation of initrd? -- Regards, Mindaugas
2024-01-30 15:59, opensuse.lietuviu.kalba rašė:
Indeed, /lib/modules directory does not exist in image-root during execution of config.sh script. Strange. <...>
I looked into https://build.opensuse.org/package/show/KDE:Medias/openSUSE-Krypton as successful Tumbleweed based appliance ISO building. Here I found command in https://build.opensuse.org/package/view_file/KDE:Medias/openSUSE-Krypton/con... :
depmod $(basename /lib/modules/*)
Indeed, in my logs I found a hint that "modules.dep is missing. Did you run depmod?" after error: [ 425s] [ DEBUG ]: 09:13:31 | EXEC: [chroot /usr/src/packages/KIWI-iso/build/image-root dracut --verbose --no-hostonly --no-hostonly-cmdline --install /.profile --add kiwi-live pollcdrom --omit multipath Lietukas_T_mini.x86_64-2024.initrd 6.7.4-1-default] [ 432s] [ DEBUG ]: 09:13:37 | EXEC: Failed with stderr: (no output on stderr), stdout: /usr/bin/dracut: line 1070: /sys/module/firmware_class/parameters/path: No such file or directory [ 432s] dracut[I]: Executing: /usr/bin/dracut --verbose --no-hostonly --no-hostonly-cmdline --install /.profile --add " kiwi-live pollcdrom " --omit " multipath " Lietukas_T_mini.x86_64-2024.initrd 6.7.4-1-default [ 432s] dracut[W]: /lib/modules/6.7.4-1-default//modules.dep is missing. Did you run depmod? After downloading kernel-default RPM package manually, I found all /lib/modules moved into /usr/lib/modules This helped to successfully built ISO in https://build.opensuse.org/package/show/home:embar-:Lietukas/Lietukas_T_mini
2024-01-30 15:59, opensuse.lietuviu.kalba rašė:
Indeed, /lib/modules directory does not exist in image-root during execution of config.sh script. Strange. <...>
I looked into https://build.opensuse.org/package/show/KDE:Medias/openSUSE-Krypton as successful Tumbleweed based appliance ISO building. Here I found command in https://build.opensuse.org/package/view_file/KDE:Medias/openSUSE-Krypton/con... :
depmod $(basename /lib/modules/*)
Indeed, in my logs I found a hint that "modules.dep is missing. Did you run depmod?" after error: [ 425s] [ DEBUG ]: 09:13:31 | EXEC: [chroot /usr/src/packages/KIWI-iso/build/image-root dracut --verbose --no-hostonly --no-hostonly-cmdline --install /.profile --add kiwi-live pollcdrom --omit multipath Lietukas_T_mini.x86_64-2024.initrd 6.7.4-1-default] [ 432s] [ DEBUG ]: 09:13:37 | EXEC: Failed with stderr: (no output on stderr), stdout: /usr/bin/dracut: line 1070: /sys/module/firmware_class/parameters/path: No such file or directory [ 432s] dracut[I]: Executing: /usr/bin/dracut --verbose --no-hostonly --no-hostonly-cmdline --install /.profile --add " kiwi-live pollcdrom " --omit " multipath " Lietukas_T_mini.x86_64-2024.initrd 6.7.4-1-default [ 432s] dracut[W]: /lib/modules/6.7.4-1-default//modules.dep is missing. Did you run depmod? After downloading kernel-default RPM package manually, I found all /lib/modules moved into /usr/lib/modules This helped to successfully built ISO in https://build.opensuse.org/package/show/home:embar-:Lietukas/Lietukas_T_mini
On Samstag, 10. Februar 2024, 17:16:03 CET opensuse.lietuviu.kalba wrote:
2024-01-30 15:59, opensuse.lietuviu.kalba rašė:
Indeed, /lib/modules directory does not exist in image-root during execution of config.sh script. Strange. <...>
I looked into https://build.opensuse.org/package/show/KDE:Medias/openSUSE-Krypton as successful Tumbleweed based appliance ISO building. Here I found command in https://build.opensuse.org/package/view_file/KDE:Medias/openSUSE-Krypton/con... :
depmod $(basename /lib/modules/*)
Indeed, in my logs I found a hint that "modules.dep is missing. Did you run depmod?" after error:
[ 425s] [ DEBUG ]: 09:13:31 | EXEC: [chroot /usr/src/packages/KIWI-iso/build/image-root dracut --verbose --no-hostonly --no-hostonly-cmdline --install /.profile --add kiwi-live pollcdrom --omit multipath Lietukas_T_mini.x86_64-2024.initrd 6.7.4-1-default] [ 432s] [ DEBUG ]: 09:13:37 | EXEC: Failed with stderr: (no output on stderr), stdout: /usr/bin/dracut: line 1070: /sys/module/firmware_class/parameters/path: No such file or directory [ 432s] dracut[I]: Executing: /usr/bin/dracut --verbose --no-hostonly --no-hostonly-cmdline --install /.profile --add " kiwi-live pollcdrom " --omit " multipath " Lietukas_T_mini.x86_64-2024.initrd 6.7.4-1-default [ 432s] dracut[W]: /lib/modules/6.7.4-1-default//modules.dep is missing. Did you run depmod?
After downloading kernel-default RPM package manually, I found all /lib/modules moved into /usr/lib/modules
OBS has no influence here, better discuss it on factory. I suppose either some rpm script or some migration hack of kiwi did this. -- Adrian Schroeter <adrian@suse.de> Build Infrastructure Project Manager SUSE Software Solutions Germany GmbH, Frankenstraße 146, 90461 Nürnberg, Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Ivo Totev
Hi,
Indeed, /lib/modules directory does not exist in image-root during execution of config.sh script. Strange. <...>
Take into account that lots of stuff moved from /lib to /usr/lib. Normally there should be a compat link: "/lib -> usr/lib". The link is created by the "filesystem" package
depmod $(basename /lib/modules/*)
Indeed, in my logs I found a hint that "modules.dep is missing. Did you run depmod?" after error:
Calling depmod as part of an image build should never be required. If it is required it is usually a workaround for a packaging issue elsewhere.
[ 432s] dracut[I]: Executing: /usr/bin/dracut --verbose --no-hostonly --no-hostonly-cmdline --install /.profile --add " kiwi-live pollcdrom " --omit " multipath " Lietukas_T_mini.x86_64-2024.initrd 6.7.4-1-default [ 432s] dracut[W]: /lib/modules/6.7.4-1-default//modules.dep is missing. Did you run depmod?
After downloading kernel-default RPM package manually, I found all /lib/modules moved into /usr/lib/modules
OBS has no influence here, better discuss it on factory.
And the same applies to kiwi
I suppose either some rpm script or some migration hack of kiwi did this.
There are no hacks in kiwi that moves anything between /lib and /usr/lib It would be very bad if we do this. Of course an image description can contain anything in its custom script code. I would first check if the image root tree has the compat link Next I would check custom code added by the author(s) of the image description if it could have an impact in this case 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 -------------------------------------------------------
participants (3)
-
Adrian Schröter
-
Marcus Schäfer
-
opensuse.lietuviu.kalba