View previous topic :: View next topic |
Author |
Message |
PhoenixStarEclipse n00b
Joined: 11 May 2017 Posts: 71 Location: Jiangsu/China
|
Posted: Mon Dec 18, 2017 1:07 pm Post subject: [solved]How to install Gentoo with /usr separated? |
|
|
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 |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Mon Dec 18, 2017 2:41 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54243 Location: 56N 3W
|
Posted: Mon Dec 18, 2017 2:55 pm Post subject: |
|
|
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 |
|
|
saellaven l33t
Joined: 23 Jul 2006 Posts: 646
|
|
Back to top |
|
|
PhoenixStarEclipse n00b
Joined: 11 May 2017 Posts: 71 Location: Jiangsu/China
|
Posted: Mon Dec 18, 2017 5:42 pm Post subject: |
|
|
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 |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Mon Dec 18, 2017 6:11 pm Post subject: |
|
|
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 |
|
|
PhoenixStarEclipse n00b
Joined: 11 May 2017 Posts: 71 Location: Jiangsu/China
|
Posted: Mon Dec 18, 2017 7:18 pm Post subject: |
|
|
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 |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Mon Dec 18, 2017 7:28 pm Post subject: |
|
|
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 |
|
|
|