public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Steven J. Long" <slong@rathaus.eclipse.co.uk>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] Re: Re: Re: eselect init
Date: Sat, 8 Jun 2013 14:28:18 +0100	[thread overview]
Message-ID: <20130608132817.GA7422@rathaus.eclipse.co.uk> (raw)
In-Reply-To: <51ABC8B1.7070105@gentoo.org>

On Mon, Jun 03, 2013 at 12:35:29AM +0200, Luca Barbato wrote:
> On 06/02/2013 08:20 PM, Steven J. Long wrote:
> > On Sun, Jun 02, 2013 at 11:15:37AM +0200, Luca Barbato wrote:
> >> On 06/01/2013 11:23 AM, Steven J. Long wrote:
> >>> That's not an argument for using a symlink switcher or the
> >>> equivalent across the board, by any means.
> >>
> >> Your opinion.
> > 
> > That's not an argument for it either.
> 
> Had been explained in the thread, please read it.

..
> Again you should read the whole thread, please do, the whole eselect
> init stuff should stay opt-in for the time being so all this discussion
> is close to pointless.

Actually the point is how to implement the best solution in Gentoo, which is
the point of this mailing-list. To float ideas and see what other perspectives
can contribute to the design. For instance, I think Duncan's idea of a single
mode, effectively secondary bootloader, is the only thing that makes any sense.

It's a Gentoo-specific init-switcher that only runs when the user has initiated
a switchover.

Implementing an init fallback is unneeded, since the kernel tries so many paths
already. And Duncan's mail is at least about the interesting, and *useful* part:
making the system ready to switch, and a setup for init-system switching as a
whole.

Including write to rootfs, eg to change inittab format.

> Consider this email a friendly warning, please do not pollute the Gentoo
> media with pointless email when you had been already politely told that
> your concern had been addressed in the previous email in the thread.

No you weren't polite. You wrote an email that had zero technical content in
it and that was basically just 'ad-hominem' as has been pointed out to me:

http://www.netbooknews.com/wp-content/2011/07/the-pyramid-of-debate-550x417.jpg

Review your last email in the context of the above, please.
 
> > You're free to work on whatever you want. You just haven't made any
> > case for why the rest of the ecosystem should be crippled to allow for a
> > use-case that would be better served by an existing, far more robust
> > solution.
> 
> Had it been the case we wouldn't had spent some weeks picking our brains
> on it.

Yes because programmers never make mistakes, and humans are so good at separating
the woods from the trees..

> > Then it can be runit or whatever else takes your fancy. You are ignoring
> > the point of that paragraph though: someone has to put the install together.
> > 
> > Or it isn't a Gentoo install.
> 
> And you seem to miss the point that all you are telling had been
> discussed, taken in consideration and in some part agreed with already...

Lala. Someone puts the install together: they run (or their script runs):
mv /sbin/init /bin/init && mv /sbin/einit || error 'unable to setup init'

> > Wrt to the first, funnily enough the kernel developers have been here before,
> > just like they had with ethN and wlanN. It's a basic requirement for developing
> > an OS that you be able to switch init and fallback to other options.
> 
> Again you didn't ready or you forgot. I said already I don't care about
> systemd many times, yet you failed to remember that.
> My specific use-case would require a trip to single mode and a second
> reboot, the way I want to do spares that.

Actually none of this has got anything to do with systemd, nor did I mention it, 
so please stop banging on about your feelings about it. They're not relevant to
this discussion, since it's init-system agnostic, just like the kernel fallback
mechanism is, or there's no point to it.
 
> On an EFI-stub only system it would require at least a kernel rebuild or
> a trip to the efi shell if available.

No it wouldn't, see above. And http://marc.info/?l=gentoo-dev&m=136968639518816&w=2
 
> > Honestly, my goal is a saving of time so people can focus on making the
> > eselect module work properly, and be of real value to an end-user who wants
> > to switch init.
> 
> To not make this a waste of time here a summary of the whole thing:

Ah finally some technical content. Yes, the above was a waste of time, and so
was your last email. Just a friendly reminder.

> - eselect init will be opt-in for the time being, people can be left on
> their own tools if the want it

Yes, but we want a sane and robust implementation in Gentoo, irrespective of
who's using it.

> - the default init will stay sysvinit. Discussion ongoing if is better
> to have it installed in a secondary fallback path is open (e.g. /bin/init).

You mean "use the kernel fallback mechanism"? I'm sure you won't be surprised
to hear I think that's a good idea.

> - I still need to send patches to busybox and sysvinit upstream to add a
> command line switch to locate the inittab.

Sounds good. busybox using the standard location with a non-standard format
sounds like a mistake though, at least for the default Gentoo config, where
it is supposed to live alongside the normal Linux utils.  When the user has
a saved-config, it is of course up to them what happens.

> - people wanting to switch init or enable/disable init addons using
> eselect init might have to refer to /sbin/einit or such custom path
> (assuming we fail to come to an agreement regarding /bin/init)
> 
> The wrapper in /sbin/init is mostly needed to get to the point of a
> clean reboot.

I think Duncan's idea makes a lot of sense. It'd be easy enough to write the
base framework to use sh modules, which users and init-system devs collaborate
on, and users maintain effectively over time, by sending in bug-reports and
patches. The existing openrc codebase could be used as a starting point.
 
> The first time you boot on a new system it is executed picking the new
> init and just that.
> 
> For addons such as bootchart2 and e4rat it would do slightly more.
> 
> Assuming upstream doesn't accept custom paths for the inittab, for my
> specific usecase I might bake something that would remount r/w and pivot
> the inittabs.

Or build that in as part of the design, as Duncan raised.
 
> Anybody willing to do something more extreme could even consider having
> /sbin/init as a symlink and have the boot-time configuration switch the
> symlink, thus making the whole script run just a single boot per switch.
> 
> Not necessary but surely feasible.

Many things are doable. Many less are advisable. 

-- 
#friendly-coders -- We're friendly, but we're not /that/ friendly ;-)


  parent reply	other threads:[~2013-06-08 13:29 UTC|newest]

Thread overview: 139+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-25  9:54 [gentoo-dev] eselect init Luca Barbato
2013-05-25 10:25 ` Peter Stuge
2013-05-25 11:57   ` Tom Wijsman
2013-05-26  1:52     ` Walter Dnes
2013-05-26  8:50       ` Tom Wijsman
2013-05-26  2:02     ` Peter Stuge
2013-05-26  8:56       ` Tom Wijsman
2013-05-25 19:08   ` Matthew Thode
2013-05-26 14:13     ` Ian Stakenvicius
2013-05-26 23:54       ` Luca Barbato
2013-05-25 11:13 ` Pacho Ramos
2013-05-25 12:03   ` Tom Wijsman
2013-05-25 12:25     ` Pacho Ramos
2013-05-25 15:42   ` Luca Barbato
2013-05-25 11:29 ` Sergei Trofimovich
2013-05-25 12:12   ` Tom Wijsman
2013-05-25 13:15   ` Luca Barbato
2013-05-25 17:35     ` Sergei Trofimovich
2013-05-25 19:49   ` Chí-Thanh Christopher Nguyễn
2013-05-25 12:13 ` hasufell
2013-05-25 15:51   ` Luca Barbato
2013-05-25 13:38 ` Tom Wijsman
2013-05-25 19:09   ` J. Roeleveld
2013-05-25 19:55     ` Tom Wijsman
2013-05-25 20:07       ` Alex Xu
2013-05-25 20:59         ` Tom Wijsman
2013-05-26 12:59       ` J. Roeleveld
2013-05-26 13:58         ` Tom Wijsman
2013-05-26 14:54         ` Ian Stakenvicius
2013-05-26 13:15       ` Michał Górny
2013-05-26 14:07         ` Tom Wijsman
2013-05-26 14:44           ` Rich Freeman
2013-05-26  6:43 ` Michał Górny
2013-05-26  8:58   ` Robert David
2013-05-26  9:20     ` Michał Górny
2013-05-26  9:32       ` Robert David
2013-05-26  9:45       ` Tom Wijsman
2013-05-26 10:09         ` Michał Górny
2013-05-26 11:45           ` Tom Wijsman
2013-05-26 12:01             ` Michał Górny
2013-05-26  9:21     ` Tom Wijsman
2013-05-26 10:01       ` Robert David
2013-05-26 10:11         ` Rich Freeman
2013-05-26 10:18           ` Chí-Thanh Christopher Nguyễn
2013-05-26 11:28           ` hasufell
2013-05-26 12:10         ` Tom Wijsman
2013-05-26  9:55   ` Luca Barbato
2013-05-26 10:39     ` Tom Wijsman
2013-05-26 10:57     ` Michał Górny
2013-05-26 11:40       ` Luca Barbato
2013-05-26 12:08         ` Michał Górny
2013-05-26 12:24           ` Luca Barbato
2013-05-26 14:58         ` Ian Stakenvicius
2013-05-27 10:36           ` [gentoo-dev] Switchup-mode and boottime selector? Was: " Duncan
2013-05-27 20:26             ` Alex Xu
2013-05-27 22:40             ` Walter Dnes
2013-05-28  9:56               ` [gentoo-dev] " Duncan
2013-05-28 11:56                 ` Tom Wijsman
2013-05-29  0:36                   ` Duncan
2013-05-29  8:52                     ` Tom Wijsman
2013-05-29 18:15                       ` Walter Dnes
2013-05-29 19:56                         ` Tom Wijsman
2013-05-29 20:55                           ` William Hubbs
2013-05-30  0:06                             ` Tom Wijsman
2013-05-30  0:22                               ` William Hubbs
2013-05-30  1:36                                 ` Duncan
2013-05-30  6:35                                 ` Tom Wijsman
2013-05-30 20:41                                   ` William Hubbs
2013-05-30  6:46                                 ` Ciaran McCreesh
2013-05-30 13:54                                   ` Ian Stakenvicius
2013-05-31  6:21                                     ` Ciaran McCreesh
2013-05-30  6:30                             ` Luca Barbato
2013-06-22 19:35                             ` Markos Chandras
2013-05-30  2:52                           ` Walter Dnes
2013-05-30  6:19                             ` Tom Wijsman
2013-05-30  6:36                               ` Dale
2013-05-30  6:31                             ` Ciaran McCreesh
2013-05-28  3:55           ` [gentoo-dev] " Luca Barbato
2013-05-28  4:19             ` Michał Górny
2013-05-28  4:43               ` Luca Barbato
2013-05-28 12:15                 ` Ian Stakenvicius
2013-05-28 12:15                 ` Ian Stakenvicius
2013-05-26 11:58       ` Tom Wijsman
2013-05-26 14:52         ` Luca Barbato
2013-05-26 15:39           ` Tom Wijsman
2013-05-26 16:41     ` William Hubbs
2013-05-26 16:48       ` William Hubbs
2013-05-26 16:55         ` Michał Górny
2013-05-26 22:58           ` William Hubbs
2013-05-26 23:47             ` Luca Barbato
2013-05-27 23:45               ` [gentoo-dev] Separate boot/root already [WAS: eselect init] Walter Dnes
2013-05-28 15:07                 ` Luca Barbato
2013-06-01  9:23 ` [gentoo-dev] Re: eselect init Steven J. Long
2013-06-01 11:43   ` Steven J. Long
2013-06-02  9:15   ` Luca Barbato
2013-06-02 18:20     ` [gentoo-dev] " Steven J. Long
2013-06-02 18:48       ` Fabio Erculiani
2013-06-08 13:37         ` [gentoo-dev] " Steven J. Long
2013-06-02 22:35       ` [gentoo-dev] " Luca Barbato
2013-06-03  0:37         ` Walter Dnes
2013-06-03  0:57           ` Rich Freeman
2013-06-03  7:03           ` Tom Wijsman
2013-06-03  9:42           ` Luca Barbato
2013-06-03  6:19         ` [gentoo-dev] " Duncan
2013-06-03  6:26         ` [gentoo-dev] " Pacho Ramos
2013-06-04 18:55         ` William Hubbs
2013-06-04 19:09           ` Rich Freeman
2013-06-08 13:28         ` Steven J. Long [this message]
2013-06-20 10:16 ` [gentoo-dev] " Fabio Erculiani
2013-06-20 17:10   ` [gentoo-dev] " Steven J. Long
2013-06-20 20:48     ` William Hubbs
2013-06-25  4:53       ` [gentoo-dev] " Steven J. Long
2013-06-20 20:56   ` [gentoo-dev] " William Hubbs
2013-06-21  2:39     ` Michał Górny
2013-06-21  4:16       ` William Hubbs
2013-06-21 10:23         ` Michał Górny
2013-06-21 15:16           ` William Hubbs
2013-06-21 15:23             ` Fabio Erculiani
2013-06-21 16:42               ` William Hubbs
2013-06-22 11:23                 ` Jason A. Donenfeld
2013-06-22 11:57                   ` hasufell
2013-06-21 19:34               ` Luca Barbato
2013-06-22  1:27                 ` Ulrich Mueller
2013-06-22  1:48                   ` Michael Weber
2013-06-21 15:29             ` Michał Górny
2013-06-21 16:13               ` Markos Chandras
2013-06-21 16:50                 ` William Hubbs
2013-06-21 19:36                   ` Luca Barbato
2013-06-21 10:30       ` Michael Weber
2013-06-21 11:19         ` Fabio Erculiani
2013-06-21 11:26           ` Pacho Ramos
2013-06-21 11:50             ` Luca Barbato
2013-06-21 14:36               ` William Hubbs
2013-06-21 15:48                 ` Pacho Ramos
2013-06-22  6:59                   ` [gentoo-dev] " Duncan
2013-06-22 10:07                     ` Pacho Ramos
2013-06-22 11:13                       ` Michael Weber
2013-06-22 11:26                         ` Rich Freeman
2013-06-22 17:05                       ` Luca Barbato

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=20130608132817.GA7422@rathaus.eclipse.co.uk \
    --to=slong@rathaus.eclipse.co.uk \
    --cc=gentoo-dev@lists.gentoo.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