Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo systemd install
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Sakarias
n00b
n00b


Joined: 12 May 2007
Posts: 51

PostPosted: Fri Jun 24, 2016 8:29 am    Post subject: Gentoo systemd install Reply with quote

I downloaded and unpack stage3-amd64-systemd-20160618.tar.bz2.
What guidelines should I use? I have now compiled kernel.
How do I install the network? With systemctl or OpenRC?
I've never used systemd and it is a stranger to me.
_________________
---
Sakarias
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1369
Location: Montréal

PostPosted: Fri Jun 24, 2016 9:16 am    Post subject: Reply with quote

I like Openrc but systemd-networkd is good too and look natural with Systemd. I have start to use it. It is well documented, easy to understand and apply. By understanding systemd-networkd on Gentoo, you know how to setup the network on all distributions who use Systemd.
_________________
Paul
Back to top
View user's profile Send private message
Sakarias
n00b
n00b


Joined: 12 May 2007
Posts: 51

PostPosted: Fri Jun 24, 2016 10:11 am    Post subject: Reply with quote

Logicien wrote:
I like Openrc but systemd-networkd is good too and look natural with Systemd. I have start to use it. It is well documented, easy to understand and apply. By understanding systemd-networkd on Gentoo, you know how to setup the network on all distributions who use Systemd.


If I can get the machine to boot and connected to the network I can install the rest with ssh.
I make simple /mnt/gentoo/etc/systemd/network/80-dhcp.network. systemctl don't work
under chroot. Can i boot kernel /vmlinuz root=/dev/sda1 init=/usr/lib/systemd/systemd
with grub? My first attempt to install gentoo ..
_________________
---
Sakarias
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1369
Location: Montréal

PostPosted: Fri Jun 24, 2016 10:27 am    Post subject: Reply with quote

Yes Systemd ignore requests in chroot. I have never seen a possibility to change this. So, from the moment you can boot on Gentoo you are better to do it to configure your system with Systemd. You have anyway to make adjustments after the first boot.

You need to pass init=/usr/lib/systemd/systemd to the kernel only if the output of
Code:
ls -l /sbin/init

do not point to /usr/lib/systemd/systemd . Anyway, init=/usr/lib/systemd/systemd will not hurt and yes you should be able to boot with Grub2 here in my example if all paths and file names are correct. If you have an initramfs who go with the kernel, you must make a line for it too
Code:
menuentry "Gentoo" {
set root=(hd0,1)
linux /vmlinuz root=/dev/sda1 init=/usr/lib/systemd/systemd
initrd /path/to/initramfs
}

To put in the file /etc/grub.d/40_custom after adaptation. Than you must update Grub2 configuration file. The Gentoo handbook is your friend.
_________________
Paul
Back to top
View user's profile Send private message
Sakarias
n00b
n00b


Joined: 12 May 2007
Posts: 51

PostPosted: Fri Jun 24, 2016 11:34 am    Post subject: Reply with quote

Code:
menuentry "Gentoo" {
set root=(hd0,1)
linux /vmlinuz root=/dev/sda1 init=/usr/lib/systemd/systemd
initrd /path/to/initramfs
}

To put in the file /etc/grub.d/40_custom after adaptation. Than you must update Grub2 configuration file. The Gentoo handbook is your friend.[/quote]

Thank you. I compile kernel without an initrd. I use /dev/sdc3 and gpt partion. I have grub and another Linux hda.
I this grub config right? Maybe later i move /boot in /dev/sdc2 and UEFI /dev/sdc1
Code:

menuentry "Gentoo" {
set root=(hd2,gpt3)
linux /boot/vmlinuz root=/dev/sdc3 init=/usr/lib/systemd/systemd
}

_________________
---
Sakarias
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum