Github messages for voidlinux
 help / color / mirror / Atom feed
From: ahesford <ahesford@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [RFC] dracut vs mkinitcpio vs booster
Date: Thu, 01 Jul 2021 13:30:25 +0200	[thread overview]
Message-ID: <20210701113025.d0i5hOgqrHcrRYHR3XHl_eyhv-fEA6c_-BqsZOh_39A@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-30813@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 2081 bytes --]

New comment by ahesford on void-packages repository

https://github.com/void-linux/void-packages/issues/30813#issuecomment-872161655

Comment:
Part of this discussion gets charged because we start thinking about where we'd go when dracut becomes completely hostile to anything but systemd. Every release seems to take us closer to that point.

I now think the best thing we can do is try to decouple packages from a single initramfs generator. 876b6ed3a4da006639908794bff4eeaeb0f123eb is a start, replacing dracut-specific post-install scripts with a common XBPS trigger that is currently aware of mkinitcpio and dracut. Somebody can add booster, initramfs-tools, whatever to that trigger as needed.

The only other issue that remains is how to cleanly handle multiple installed generators. On some systems, I've been using mkinitcpio to ensure there is a clean transitional path. However, ZFSBootMenu still requires dracut. Having both installed means multiple kernel hooks compete (mkinitcpio would win here) unless I `noextract` the hooks I don't want. This works fine for people who know to do it, but we really need a method for multiple kernel hooks to coexist without all of them firing. I see two possibilities:
1. Every kernel hook is aware of `/etc/default/initramfs-regenerate` used by the XBPS trigger and will turn itself into a no-op if the configured generator does not agree with the one in the hook, or
2. We centralize the kernel hook, knowing how to create an initramfs for each generator and choosing the right one based on the configuration.
The first option provably violates DRY, but the second doesn't scale well beyond a handful of generators. No problem; we should never really have more than a handful available anyway.  I think (2) is a bit cleaner.

With the hook issue resolved, we can probably just define a virtual provided by all the generators. People can then just use what they want with no problems. The last issue is choosing a default provider, but that should obviously be dracut for a long time because we have a lot of inertia.


  parent reply	other threads:[~2021-07-01 11:30 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-12  8:59 [ISSUE] [RFC] dracut vs mkinitcpio dkwo
2021-05-12 11:47 ` ericonr
2021-05-12 12:23 ` dkwo
2021-05-12 12:23 ` dkwo
2021-05-12 12:23 ` dkwo
2021-05-12 13:06 ` ahesford
2021-05-13 11:35 ` dkwo
2021-05-13 11:36 ` dkwo
2021-05-13 12:38 ` Duncaen
2021-05-13 12:42 ` Duncaen
2021-05-17 13:49 ` travankor
2021-05-17 13:50 ` travankor
2021-05-17 16:04 ` dkwo
2021-05-18  8:07 ` travankor
2021-05-24  2:38 ` furryfixer
2021-06-30  8:32 ` [RFC] dracut vs mkinitcpio vs booster dkwo
2021-06-30 10:00 ` q66
2021-07-01  7:59 ` dkwo
2021-07-01  9:17 ` Johnnynator
2021-07-01 11:10 ` q66
2021-07-01 11:20 ` q66
2021-07-01 11:30 ` ahesford [this message]
2021-07-01 11:59 ` dkwo
2021-07-16 20:31 ` [ISSUE] [CLOSED] [RFC] initramfs dkwo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210701113025.d0i5hOgqrHcrRYHR3XHl_eyhv-fEA6c_-BqsZOh_39A@z \
    --to=ahesford@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).