Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]How to install Gentoo with /usr separated?
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
PhoenixStarEclipse
n00b
n00b


Joined: 11 May 2017
Posts: 70
Location: Jiangsu/China

PostPosted: Mon Dec 18, 2017 1:07 pm    Post subject: [solved]How to install Gentoo with /usr separated? Reply with quote

I want to separate /usr, but it seems initramfs is required. I can't find any tutorial about how to build initramfs with separated /usr or any tools in the gentoo repository to deal with separated /usr.
_________________
Think twice,code once.


Last edited by PhoenixStarEclipse on Mon Dec 18, 2017 7:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10261
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Dec 18, 2017 2:41 pm    Post subject: Reply with quote

Genkernel makes an initramfs as part of its standard kernel build, but can also be used to build just the initramfs. There's also the Dracut stand-alone initramfs.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43198
Location: 56N 3W

PostPosted: Mon Dec 18, 2017 2:55 pm    Post subject: Reply with quote

PhoenixStarEclipse,

It all depends. A separate /usr needs to be mounted before udev can start.
Normally that does not happen because the localmount, service which mounts everything in /etc/fstab is run after udev.

There are two solutions.
Don't start udev until after localmount, so /usr is mounted.
Mount the separate /usr using an initrd.

There is a set of patches to openrc on the forum, which provide option one. I don't know if they work with the current openrc.
Convention says mount the separate /usr using an initrd.
Its not hard to roll your own initrd if you don't like the autoblackmagic.

There is another option which I'll mention for completness only. Don't use a device manager at all.
That takes you back to Linux as it was about 17 years ago.
I know it works but I won't encourage it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
saellaven
Guru
Guru


Joined: 23 Jul 2006
Posts: 505

PostPosted: Mon Dec 18, 2017 4:52 pm    Post subject: Reply with quote

I've locked in my openrc at 0.17 and I haven't tested this on a new install recently, but check out HOWTO: udev, sep /usr, no initramfs. eudev:3.1.5 rc:0.23.2
Back to top
View user's profile Send private message
PhoenixStarEclipse
n00b
n00b


Joined: 11 May 2017
Posts: 70
Location: Jiangsu/China

PostPosted: Mon Dec 18, 2017 5:42 pm    Post subject: Reply with quote

John R. Graham wrote:
Genkernel makes an initramfs as part of its standard kernel build, but can also be used to build just the initramfs. There's also the Dracut stand-alone initramfs.

- John

What parameter of genkernel is used? I looked the man page but found nothing about separated usr.
_________________
Think twice,code once.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10261
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Dec 18, 2017 6:11 pm    Post subject: Reply with quote

None are needed if you're following a standard Handbook install. The standard Genkernel kernel and initramfs will support a separate /usr without any additional work. If you're doing something else, please give a few more details and I'll try to help.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
PhoenixStarEclipse
n00b
n00b


Joined: 11 May 2017
Posts: 70
Location: Jiangsu/China

PostPosted: Mon Dec 18, 2017 7:18 pm    Post subject: Reply with quote

John R. Graham wrote:
None are needed if you're following a standard Handbook install. The standard Genkernel kernel and initramfs will support a separate /usr without any additional work. If you're doing something else, please give a few more details and I'll try to help.

- John

Thanks. It's just that I used archlinux, which requires additional configuration to run with separated /usr, and I thought gentoo needs simular things too. I apologize for asking such a meaningless question.
_________________
Think twice,code once.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10261
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Dec 18, 2017 7:28 pm    Post subject: Reply with quote

Not meaningless at all. You're very welcome. :)

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
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