Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Gentoo Chat
  • Search

OpenRC : split-usr or merged-usr ?

Opinions, ideas and thoughts about Gentoo. Anything and everything about Gentoo except support questions.
Post Reply
  • Print view
Advanced search
15 posts • Page 1 of 1
Author
Message
Adrien.D
Apprentice
Apprentice
Posts: 160
Joined: Sun Jan 18, 2015 1:55 pm

OpenRC : split-usr or merged-usr ?

  • Quote

Post by Adrien.D » Thu Apr 18, 2024 9:06 am

Hello,
I have all my Gentoo with OpenRC.
With 23.0 profile i switched on the split-usr of course.
The "standard" profile looks like, for OpenRC, merged-usr.

Can i keep the split-usr all the time or in next months/years OpenRC must migrate to merged-usr and split-usr won't be supported ?
Desktop : MSI Gaming Pro X470 - AMD Ryzen 5 2600X - RX 560 - OpenRC GNOME - gentoo-sources-6.1 LTS
Server : Acer Barebone - Intel i3-8100T - OpenRC CLI - gentoo-sources-5.4 LTS
VMs : A lot of VMS to practice Gentoo of course :) (proxmox, virtualbox)
Top
Banana
Moderator
Moderator
User avatar
Posts: 2374
Joined: Fri May 21, 2004 12:02 pm
Location: Germany
Contact:
Contact Banana
Website

  • Quote

Post by Banana » Thu Apr 18, 2024 10:50 am

I'm not sure how long a future profile will take, so until then you are safe.

I think on the long run a merged usr will be the default. It is an old movement which simplifies some stuff.
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Top
Hu
Administrator
Administrator
Posts: 24385
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Thu Apr 18, 2024 3:02 pm

I have not seen any announcement indicating that split-usr will be removed from openrc. Therefore, as with all projects, it will be supported until the people who work on the project choose not to support it anymore. That will most likely be when supporting it becomes too much trouble relative to the value that they gain from that support. We have already seen early cases of things breaking due to merged-usr assumptions, so I would not be surprised if additional upstream projects over time begin assuming "All the world is merged-usr" (even if almost none of it is VAX) and break on a split-usr setup. If too many of those break, the developers supporting split-usr might give up and abandon it. Absent specific statements from the relevant developers, I choose not to worry yet. There will always be the chance to migrate later, if that becomes necessary. The migration procedure for merged-usr looks fairly easy, so I don't expect to find myself stuck with no path forward, even if merged-usr becomes mandatory.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56077
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Thu Apr 18, 2024 4:40 pm

I think open-rc split-user days are numbered.
The 23.0/split-user profiles exist but there are no split-user stage 3 tarballs to download.

We need the inverse of

Code: Select all

* sys-apps/merge-usr
     Available versions:  6 {PYTHON_SINGLE_TARGET="python3_10 python3_11 python3_12"}
     Homepage:            https://github.com/floppym/merge-usr
     Description:         Script to migrate from split-usr to merged-usr
I found a Nov-23 17.1 stage3 for a new install a week or so ago, as I don't want a mix and couldn't face writing sys-apps/split-usr :)
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
grknight
Retired Dev
Retired Dev
Posts: 2556
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Thu Apr 18, 2024 4:56 pm

NeddySeagoon wrote:I think open-rc split-user days are numbered.
The 23.0/split-user profiles exist but there are no split-user stage 3 tarballs to download.
There still is an amd64 split-usr stage3 under the advanced section. However, this is the only one currently being produced.
Others could be produced if there was demand. I'm sure anyone could create them using catalyst with minor modifications to the Gentoo recipes for alternate arches.

Edit: seems arm64 also has split-usr
Top
pietinger
Moderator
Moderator
Posts: 6617
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

Re: OpenRC : split-usr or merged-usr ?

  • Quote

Post by pietinger » Fri Apr 19, 2024 8:55 am

Adrien.D wrote:[...] Can i keep the split-usr all the time or in next months/years OpenRC must migrate to merged-usr and split-usr won't be supported ?
All people who have /usr on an extra partition cannot switch to merged-usr unless other requirements are met (-> https://wiki.gentoo.org/wiki/Early_Userspace_Mounting ). However, if /usr is a normal directory in your root partition, there is no reason not to migrate to merged-usr. I also have an OpenRC system and migrated to merged-usr the day after I switched to 23.0 profiles: https://wiki.gentoo.org/wiki/Merge-usr =>

Code: Select all

# emerge -uNDv @world
# emerge -1v merge-usr
# merge-usr --dryrun
# merge-usr
# eselect profile set X
# emerge -uNDv @world
(-> 17 packages updated)
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
Adrien.D
Apprentice
Apprentice
Posts: 160
Joined: Sun Jan 18, 2015 1:55 pm

  • Quote

Post by Adrien.D » Fri Apr 19, 2024 10:01 am

OK, so the best thing to do is migrate to merged-usr with OpenRC (profile without "split-usr") when i have the time. (i don't have /usr on specific part)

No stress when the split-usr will be unsupported (when it will be..)

But indeed, i didn't see official news about that, but see "split-usr" explicit in the profile name trough me, maybe, will be unsupported soon :)
Desktop : MSI Gaming Pro X470 - AMD Ryzen 5 2600X - RX 560 - OpenRC GNOME - gentoo-sources-6.1 LTS
Server : Acer Barebone - Intel i3-8100T - OpenRC CLI - gentoo-sources-5.4 LTS
VMs : A lot of VMS to practice Gentoo of course :) (proxmox, virtualbox)
Top
acarstoiu
Apprentice
Apprentice
Posts: 209
Joined: Wed Oct 20, 2004 10:14 am

  • Quote

Post by acarstoiu » Sun Jun 09, 2024 8:38 am

In

Code: Select all

/var/db/repos/gentoo/profiles/releases/23.0/profile.bashrc
the detection whether the profile is with a split or merged usr is based on the simple test of a

Code: Select all

split-usr
substring within the directory path of the profile.
This is simply imposing a supplementary assertion on custom profiles which reside at admin-chosen paths. That should be mentioned in the documentation.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56077
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Jun 09, 2024 8:44 am

acarstoiu,

Add your suggestion to the Wiki Talk page.
The wiki will email contributors who are watching the page.
The suggestion my get lost here.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
acarstoiu
Apprentice
Apprentice
Posts: 209
Joined: Wed Oct 20, 2004 10:14 am

  • Quote

Post by acarstoiu » Sun Jun 09, 2024 9:24 am

Tried that, of course, but my Gentoo forums account is not valid for the wiki :?
Top
Zucca
Moderator
Moderator
User avatar
Posts: 4688
Joined: Thu Jun 14, 2007 10:31 pm
Location: Rasi, Finland
Contact:
Contact Zucca
Website

Re: OpenRC : split-usr or merged-usr ?

  • Quote

Post by Zucca » Sun Jun 09, 2024 9:43 am

pietinger wrote:However, if /usr is a normal directory in your root partition, there is no reason not to migrate to merged-usr.
I still seem to have split-usr profile selected:

Code: Select all

Current /etc/portage/make.profile symlink:
  default/linux/amd64/23.0/split-usr/no-multilib
I have some pretty exotic setups (for example a separate /etc on a lvm lv for easy snapshotting), so I have custom initramfs where I can easily add more "pre switch_root" mounts.

So by migrating to merged-usr (using the script) I guess /bin and /sbin would become symlinks?
..: Zucca :..

Code: Select all

init=/sbin/openrc-init
-systemd -logind -elogind seatd
I am NaN! I am a man!
Top
pietinger
Moderator
Moderator
Posts: 6617
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

Re: OpenRC : split-usr or merged-usr ?

  • Quote

Post by pietinger » Sun Jun 09, 2024 9:48 am

Zucca wrote:So by migrating to merged-usr (using the script) I guess /bin and /sbin would become symlinks?
Yes, this is true; /bin is then a symlink to /usr/bin and /sbin is a symlink to /usr/sbin.
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
miket
Guru
Guru
Posts: 513
Joined: Sat Apr 28, 2007 2:45 am
Location: Gainesville, FL, USA

  • Quote

Post by miket » Sun Jun 09, 2024 8:39 pm

acarstoiu wrote:In

Code: Select all

/var/db/repos/gentoo/profiles/releases/23.0/profile.bashrc
the detection whether the profile is with a split or merged usr is based on the simple test of a

Code: Select all

split-usr
substring within the directory path of the profile.
This is simply imposing a supplementary assertion on custom profiles which reside at admin-chosen paths. That should be mentioned in the documentation.
There are two problems here:
  • The script /var/db/repos/gentoo/profiles/releases/23.0/profile.bashrc is supposed to warn the user if there is a mismatch between the status of /bin in the filesystem and the current profile. As you note, the test is terribly fragile. It would be much more effective if it probed the inheritance tree of the profile and did not rely on simply the name of the profile. (As a user of custom profiles, this issue really sticks out for me.) I think it would be much more important to address this bug rather than alter the wiki page. A true probe of the profile would have the added benefit of detecting the wonky situation of inheritance from both split-usr and merged-user ancestors. Of note: the test seems to run at pretty much every invocation any of the Portage utilities, not just the conversion program.
  • Why are /sbin and /usr/sbin merging to /bin? Even that German who wants to rule the world indicates that /sbin would merge to /usr/sbin, not to /bin. See the original TheCaseForUsrMerge and the revised version The Case of the /usr Merge. Both of these have /sbin -> /usr/sbin. My guess is that the all-binaries-in-one-directory notion came from some distro maintainer, not L.P.
---

Edit to note that I'm seeing conflicting indications of how Gentoo's usr merging treats /sbin.
Top
pjp
Administrator
Administrator
User avatar
Posts: 20668
Joined: Tue Apr 16, 2002 10:35 pm

  • Quote

Post by pjp » Sun Jun 09, 2024 8:57 pm

This thread is depressing. It's like Windows and Linux are having a competition, running around saying to each other "Hold my beer".

EDIT: s/Microsoft/Linux/
Last edited by pjp on Sun Jun 09, 2024 11:48 pm, edited 1 time in total.
Quis separabit? Quo animo?
Top
pietinger
Moderator
Moderator
Posts: 6617
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

Re: OpenRC : split-usr or merged-usr ?

  • Quote

Post by pietinger » Sun Jun 09, 2024 11:15 pm

pietinger wrote:Yes, this is true; /bin is then a symlink to /usr/bin and /sbin is a symlink to /usr/sbin.
Sorry, this is wrong; correct is: /sbin is a symlink to /usr/bin ... and NOT to /usr/sbin ... I am getting old when I see things in my root directory which are not there :oops:
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
Post Reply
  • Print view

15 posts • Page 1 of 1

Return to “Gentoo Chat”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic