1 |
On Sun, Jun 8, 2014 at 1:26 PM, Tanstaafl <tanstaafl@×××××××××××.org> wrote: |
2 |
> |
3 |
> First question: is there a decent guide to installing a gentoo system from |
4 |
> scratch using systemd as the init system? |
5 |
|
6 |
I've done this a few times on VMs. Just follow the handbook, but skip |
7 |
steps about configuring hostname/timezone/locale/etc since systemd |
8 |
does this (but do set up locale.gen). Then follow the systemd install |
9 |
guide. If you follow both guides to completion you won't hurt |
10 |
anything, but you'll just end up configuring some things twice (but |
11 |
systemd does migrate some of your settings over). |
12 |
|
13 |
> |
14 |
> Second question: is there a decent guide to how to switch from OpenRC to |
15 |
> systemd? |
16 |
|
17 |
Yes, the systemd wiki page is the best place to go for this. It is |
18 |
pretty straightfoward. |
19 |
|
20 |
The only thing I'd do differently is just use networkd. The guide |
21 |
doesn't include that yet. |
22 |
|
23 |
cat > /etc/systemd/network/dhcp.network |
24 |
[Match] |
25 |
Name=en* |
26 |
|
27 |
[Network] |
28 |
DHCP=yes |
29 |
--- end file --- |
30 |
|
31 |
(as long as you keep the extension you can call that file whatever you |
32 |
want, and if your interface doesn't match that glob you can tweak it) |
33 |
|
34 |
Also, if you have any network filesystems be sure to set the _netdev |
35 |
option in fstab. |
36 |
|
37 |
> |
38 |
> Third question: is there a decent guide on how to switch from systemd back |
39 |
> to OpenRC, if I encounter any serious problems on a production box? |
40 |
|
41 |
For the most part you can just change the init setting on your kernel |
42 |
line to switch back and forth. You'll end up using udev packaged with |
43 |
systemd, but for the most part that shouldn't cause too many problems. |
44 |
Oh, if you're using dracut there is a chance it won't realize you |
45 |
aren't running systemd in your kernel and that could cause some issues |
46 |
(I was getting some of that before I intended to cut over to systemd |
47 |
in my last migration, but I didn't mess with it for long). |
48 |
|
49 |
Just keep in mind that immediately following the migration you won't |
50 |
have any services enabled. That means no network, no sshd, etc. |
51 |
Starting that stuff up is pretty easy, but it is just like having a |
52 |
fresh OpenRC install. |
53 |
|
54 |
Rich |