Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Intalling Gentoo with systemd, LUKS, LVM2
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
i716
n00b
n00b


Joined: 08 May 2016
Posts: 2
Location: Yokohama, Japan

PostPosted: Sun May 08, 2016 12:34 pm    Post subject: Intalling Gentoo with systemd, LUKS, LVM2 Reply with quote

Hello, everybody. First of all, I'm new to this forum and to gentoo in general. I do have 15+ years experience on other Linux distributions (Debian, Arch) and BSD however.

So now I'd like to setup my Thinkpad with a fresh install of Gentoo using systemd since I use that on my Arch machine and I'm quite happy with it. I also require an encrypted root and swap partition for this setup.
Unfortunately, I couldn't find a tutorial for exactly this scenario. After partioning the hard drive (and setting up the LVM on an encrypted volume), I don't know what to do.

I would prefer to use mkinitcpio to build an initramfs as I always use that on Arch and I am familiar with the needed HOOKS. Now, a search on the internet suggests that using dracut would be more straight forward. To be honest, I never got in contact with it, except for having heard the name somewhere in the Fedora world some time ago... What are your opinions?

What would be a good start after upgrading @world? Which extra packages need to be installed? Which useflags do I have to use?

Thanks for your help!

Eric
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2970
Location: Germany

PostPosted: Sun May 08, 2016 2:07 pm    Post subject: Re: Intalling Gentoo with systemd, LUKS, LVM2 Reply with quote

i716 wrote:
So now I'd like to setup my Thinkpad with a fresh install of Gentoo using systemd since I use that on my Arch machine and I'm quite happy with it.


I'm happy with systemd on ArchLinux as well. That is to say... it boots, I don't notice it. It's not like I actually do anything with it.

i716 wrote:
Unfortunately, I couldn't find a tutorial for exactly this scenario.


systemd is not the default in Gentoo so it is (or used to be) quite complicated. But I think someone mentioned a systemd stage3 recently, so if you can start with that you should already be set - no?

(Link: http://distfiles.gentoo.org/releases/amd64/autobuilds/current-stage3-amd64-systemd/ - note I've never tried this one)

i716 wrote:
I would prefer to use mkinitcpio to build an initramfs as I always use that on Arch and I am familiar with the needed HOOKS.


I'm really not sure how (or if at all) Arch's mkinitcpio translates to Gentoo. There doesn't seem to be an ebuild for it.

If you want it to be so much like Arch, why not use Arch in the first place? :wink:

Gentoo is very different, there's even a guide in the wiki how to build your own Custom Initramfs from scratch. (it doesn't really cover systemd though, sorry)

i716 wrote:
Which extra packages need to be installed? Which useflags do I have to use?


Aside from the defaults that come with every profile you choose (eselect profile list) that is different for everyone. Not much point worrying too much over it: you can change these things any time and use emerge --newuse --deep --update --with-bdeps=y @world to get the dice rolling...
Back to top
View user's profile Send private message
i716
n00b
n00b


Joined: 08 May 2016
Posts: 2
Location: Yokohama, Japan

PostPosted: Sun May 08, 2016 3:46 pm    Post subject: Reply with quote

@frostschutz: Thanks for your input. Reading through part of the documentation, I am aware of the fact that systemd is not the default in Gentoo. I just wanted to give it a try...
When choosing the stage3 I went for the systemd variation - and was quite confused about what to do next. There are all too many approaches that you can find on the web. Unfortunately nothing out there actually corresponds to my situation. And some of that information is quite contradictionary: I would have believed that choosing the systemd variation of the stage3 would install only what it suggests: systemd. But the official documentation suggests that when building the kernel, the alternative should be kept enabled as well(?) Seems to be quite confusing. Anyways, thanks for your reply. I will possibly have a look into it tomorrow as I'm too tired now.
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