Gentoo Archives: gentoo-dev

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] eselect init
Date: Sun, 26 May 2013 01:52:40
Message-Id: 20130526015228.GB12395@waltdnes.org
In Reply to: Re: [gentoo-dev] eselect init by Tom Wijsman
1 On Sat, May 25, 2013 at 01:57:39PM +0200, Tom Wijsman wrote
2 > On Sat, 25 May 2013 12:25:03 +0200
3 > Peter Stuge <peter@×××××.se> wrote:
4 >
5 > > I would actually expect the change to take effect immediately.
6 >
7 > Then how would you be able to shutdown / reboot your system in a clean
8 > way? The premise here is that when you boot with an init system you
9 > must shutdown with that same init system, you can't just start one init
10 > system and expect the other init system to cleanly shut down its
11 > services. Therefore implementing this would either be unclean or way to
12 > complex.
13 >
14 > From all the methods discussed doing it on boot sounds the most sane.
15
16 It has to be done *VERY* early at boot, or else we're back to the
17 problem you described above. It's almost like a brain surgeon operating
18 on himself. Here are a couple of "outside the box" ideas that haven't
19 been mentioned yet...
20
21 1) boot into single mode before doing the changeover. Both grub and
22 lilo support single mode boot as per...
23 http://www.gentoo-wiki.info/TIP_Booting_into_single_user_mode
24
25 2) have the setup/switchover mechanism built into the Gentoo minimal
26 install ISO. The advantage here is that if the system ends up no longer
27 bootable off the harddrive, you can still boot from the ISO, chroot into
28 the system on the harddrive, and send emails to the gentoo-user list
29 asking for help <G>.
30
31 --
32 Walter Dnes <waltdnes@××××××××.org>
33 I don't run "desktop environments"; I run useful applications

Replies

Subject Author
Re: [gentoo-dev] eselect init Tom Wijsman <TomWij@g.o>