Gentoo Archives: gentoo-amd64

From: Rich Freeman <rich0@g.o>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] Systemd without migration
Date: Tue, 24 Nov 2015 12:12:18
Message-Id: CAGfcS_=pdx9J0T3oP5noOkeDhwKX6NfHber9ahtVhRtoL5i=+Q@mail.gmail.com
In Reply to: [gentoo-amd64] Systemd without migration by mr_L4N
1 On Mon, Nov 23, 2015 at 4:48 PM, mr_L4N <serverplus@×××××.com> wrote:
2 > Hi, i'm trying to install systemd on a new installation, without openrc.
3 >
4 > Is it possible to do? There's some guide on the net?
5 >
6 > I having many problem with correct boot, and network.
7 >
8
9 As Duncan suggested you could follow the handbook, and it will work,
10 but the sequencing is suboptimal.
11
12 Merging systemd install instructions into the handbook is something on
13 my to-do list.
14
15 Looking at my notes the last time I looked at the details you just
16 need to pick a systemd profile at the point where you pick a profile.
17 Then you need to do these steps before you emerge -u world (the steps
18 are in the handbook, but not necessarily in the right order):
19 1. Edit locale.gen and run locale-gen
20 2. Pick your profile with eselect profile
21 3. Run ln -sf /proc/self/mounts /etc/mtab (why this isn't already in
22 baselayout is beyond me)
23 4. echo "EST5EDT" > /etc/timezone
24
25 Then when you emerge -u world these settings will get migrated to
26 systemd automatically.
27
28 When you're done you just add
29 GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd" to your
30 /etc/default/grub before running grub2-mkconfig.
31
32 If you're having booting issues it probably has nothing to do with
33 systemd itself - that seems like a bootloader/initramfs problem. I'd
34 recommend using dracut and grub2 as they tend to be much smarter about
35 such things.
36
37 To get your network running you'll need to enable/start
38 systemd-networkd or the network manager of your choice. If you don't
39 want to use networkd then make sure you install your choice of
40 networkd before you reboot while you still have a network, or just use
41 networkd until you get another network manager installed/configured.
42 If you're just using dhcp it doesn't require any configuration.
43
44 You did mention "without openrc" - while being able to install without
45 openrc is on the to-do list right now there are still a few packages
46 which use openrc instead of sys-apps/gentoo-functions and until these
47 are fixed we have openrc in the system set so that it is hard to
48 remove. Once these are fixed then I suspect we'll get to a point
49 where picking/installing your service manager/init are just like
50 picking your bootloader and kernel.
51
52 You're welcome to follow my notes, but they also include the use of
53 btrfs which you may or may not want to use:
54 https://docs.google.com/document/d/1VJlJyYLTZScta9a81xgKOIBjYsG3_VfxxmUSxG23Uxg/edit?usp=sharing
55
56 --
57 Rich

Replies

Subject Author
[gentoo-amd64] Re: Systemd without migration mr_L4N <serverplus@×××××.com>