[opensuse-factory] Leap15 build 252 - initrd being rebuilt twice?
I can't remember if this is expected, but I thought there was some way of having the initrd rebuilt only once? When I dup'ed yesterday, this is what I saw: (216/220) Installing: kernel-default-4.12.14-lp150.11.3.x86_64 ....................... [done] Additional rpm output: Creating initrd: /boot/initrd-4.12.14-lp150.11-default .... 220/220) Installing: patterns-base-enhanced_base-20171206-lp150.13.1.x86_64 ......... [done] Executing %posttrans script 'ucode-amd-20180416-lp150.1.4.noarch.rpm' ---------------[-]^[[B^[[B Output of ucode-amd-20180416-lp150.1.4.noarch.rpm %posttrans script: Creating initrd: /boot/initrd-4.12.14-lp150.10-default .... Creating initrd: /boot/initrd-4.12.14-lp150.11-default .... Just being curious. -- Per Jessen, Zürich (12.5°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Am Mittwoch, 16. Mai 2018, 09:28:21 CEST schrieb Per Jessen:
I can't remember if this is expected, but I thought there was some way of having the initrd rebuilt only once?
Last TW update has build it three times if I remember right...Leap I have not counted, but more than once as well. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Moin Per, On Wed, 16 May 2018, 09:28:21 +0200, Per Jessen wrote:
I can't remember if this is expected, but I thought there was some way of having the initrd rebuilt only once?
When I dup'ed yesterday, this is what I saw:
(216/220) Installing: kernel-default-4.12.14-lp150.11.3.x86_64 ....................... [done] Additional rpm output: Creating initrd: /boot/initrd-4.12.14-lp150.11-default ....
220/220) Installing: patterns-base-enhanced_base-20171206-lp150.13.1.x86_64 ......... [done] Executing %posttrans script 'ucode-amd-20180416-lp150.1.4.noarch.rpm' ---------------[-]^[[B^[[B Output of ucode-amd-20180416-lp150.1.4.noarch.rpm %posttrans script: Creating initrd: /boot/initrd-4.12.14-lp150.10-default .... Creating initrd: /boot/initrd-4.12.14-lp150.11-default ....
looks like you have multiversion enabled, hence you have two kernels installed, and packages like ucode-amd carry stuff which needs to go into the initrd. This is probably why both initrds got (re-)built.
Just being curious.
HTH, cheers. l8er manfred
Manfred Hollstein wrote:
Moin Per,
On Wed, 16 May 2018, 09:28:21 +0200, Per Jessen wrote:
I can't remember if this is expected, but I thought there was some way of having the initrd rebuilt only once?
When I dup'ed yesterday, this is what I saw:
(216/220) Installing: kernel-default-4.12.14-lp150.11.3.x86_64 ....................... [done] Additional rpm output: Creating initrd: /boot/initrd-4.12.14-lp150.11-default ....
220/220) Installing: patterns-base-enhanced_base-20171206-lp150.13.1.x86_64 ......... [done] Executing %posttrans script 'ucode-amd-20180416-lp150.1.4.noarch.rpm' ---------------[-]^[[B^[[B Output of ucode-amd-20180416-lp150.1.4.noarch.rpm %posttrans script: Creating initrd: /boot/initrd-4.12.14-lp150.10-default .... Creating initrd: /boot/initrd-4.12.14-lp150.11-default ....
looks like you have multiversion enabled, hence you have two kernels installed,
Right.
and packages like ucode-amd carry stuff which needs to go into the initrd. This is probably why both initrds got (re-)built.
Yup, no problem with that, but initrd-4.12.14-lp150.11-default was also built twice? -- Per Jessen, Zürich (12.3°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Wed, May 16, Per Jessen wrote:
Yup, no problem with that, but initrd-4.12.14-lp150.11-default was also built twice?
Some package build the initrd directly for whatever reasons in the %post section, others only in the %posttrans section. So once during installation, once during %posttrans is Ok. Twice during %posttrans would be a bug. Thorsten -- Thorsten Kukuk, Distinguished Engineer, Senior Architect SLES & CaaSP SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany GF: Felix Imendoerffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Wed, 16 May 2018 10:09:10 +0200, Thorsten Kukuk wrote:
On Wed, May 16, Per Jessen wrote:
Yup, no problem with that, but initrd-4.12.14-lp150.11-default was also built twice?
Some package build the initrd directly for whatever reasons in the %post section, others only in the %posttrans section. So once during installation, once during %posttrans is Ok. Twice during %posttrans would be a bug.
The kernel package calls weak-modules2 script at %post, and it builds initrd. It's currently the intentional behavior to assure the initrd to be built when a package is installed. In theory, we may pass $INITRD_IN_POSTTRANS=1 at calling the script so that it can postpone the initrd generation (as KMP does so), but we'd like to stay in the safer side for the kernel package itself. Takashi -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Thorsten Kukuk wrote:
On Wed, May 16, Per Jessen wrote:
Yup, no problem with that, but initrd-4.12.14-lp150.11-default was also built twice?
Some package build the initrd directly for whatever reasons in the %post section, others only in the %posttrans section. So once during installation, once during %posttrans is Ok. Twice during %posttrans would be a bug.
Okay, thanks for the explanation. -- Per Jessen, Zürich (12.9°C) http://www.cloudsuisse.com/ - your owncloud, hosted in Switzerland. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (5)
-
Axel Braun
-
Manfred Hollstein
-
Per Jessen
-
Takashi Iwai
-
Thorsten Kukuk