Results 1 to 4 of 4

Thread: Trying to understand why zypper does multiple initrd in one update run

  1. #1
    Join Date
    Jan 2016
    Location
    UK
    Posts
    793

    Default Trying to understand why zypper does multiple initrd in one update run

    I have been wondering why when I update TW using zypper dup or Leap using zypper up it does initrd multiple times throughout rather than once at the end? This morning on updating TW it did it 6 times which takes a while and the last two were at the end after all updates (twice in succession). I would have thought it could set a flag and do it once at the end. I'm sure there is a good reason but just to satisfy my curiosity can anyone explain why?

    Stuart

  2. #2
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,925
    Blog Entries
    14

    Default Re: Trying to understand why zypper does multiple initrd in one update run

    Quote Originally Posted by broadstairs View Post
    I have been wondering why when I update TW using zypper dup or Leap using zypper up it does initrd multiple times throughout rather than once at the end? This morning on updating TW it did it 6 times which takes a while and the last two were at the end after all updates (twice in succession). I would have thought it could set a flag and do it once at the end. I'm sure there is a good reason but just to satisfy my curiosity can anyone explain why?

    Stuart
    This has been explained on the factory ML, where Dimstar explained that this cannot be done differently. Had a quick look but I can't find the thread it was posted in. FWIW the post left me with an "OK, then that's explained and done, I'll live with it." . Anyway, NVIDIA / Broadcom involved? AFAIK triggering the recreation of the initrd is done on package level. So, an upgrade may or may not contain packages that need recreation of the initrd. The kernel package cannot count on NVIDIA or any other kernel-related packages being in the upgrade session, so no other way than on package level. Hope this gives you enough info to see a bit of the why .
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,775

    Default Re: Trying to understand why zypper does multiple initrd in one update run

    I do not know much of the internals, but I can imagine that when a package is installed that needs initrd to be recreated, it should happen asap. Waiting for a multiple package installation session to finish, could lead to that session being broken off for whatever reason. Couldn't that leave you with an unbootable system?
    Henk van Velden

  4. #4
    Join Date
    Jan 2016
    Location
    UK
    Posts
    793

    Default Re: Trying to understand why zypper does multiple initrd in one update run

    Thanks guys, I can understand why now, just that 6 initrd creates seemed excessive.

    Stuart

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •