View previous topic :: View next topic |
Author |
Message |
Adrien.D Apprentice
Joined: 18 Jan 2015 Posts: 157
|
Posted: Thu Apr 18, 2024 9:06 am Post subject: OpenRC : split-usr or merged-usr ? |
|
|
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) |
|
Back to top |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1734 Location: Germany
|
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22657
|
Posted: Thu Apr 18, 2024 3:02 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Thu Apr 18, 2024 4:40 pm Post subject: |
|
|
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: | * 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. |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1921
|
Posted: Thu Apr 18, 2024 4:56 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5109 Location: Bavaria
|
Posted: Fri Apr 19, 2024 8:55 am Post subject: Re: OpenRC : split-usr or merged-usr ? |
|
|
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: | # 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 |
|
Back to top |
|
|
Adrien.D Apprentice
Joined: 18 Jan 2015 Posts: 157
|
Posted: Fri Apr 19, 2024 10:01 am Post subject: |
|
|
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) |
|
Back to top |
|
|
acarstoiu Apprentice
Joined: 20 Oct 2004 Posts: 197
|
Posted: Sun Jun 09, 2024 8:38 am Post subject: |
|
|
In Code: | /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 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. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Sun Jun 09, 2024 8:44 am Post subject: |
|
|
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. |
|
Back to top |
|
|
acarstoiu Apprentice
Joined: 20 Oct 2004 Posts: 197
|
Posted: Sun Jun 09, 2024 9:24 am Post subject: |
|
|
Tried that, of course, but my Gentoo forums account is not valid for the wiki |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3703 Location: Rasi, Finland
|
Posted: Sun Jun 09, 2024 9:43 am Post subject: Re: OpenRC : split-usr or merged-usr ? |
|
|
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: eselect profile show: | 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 :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5109 Location: Bavaria
|
Posted: Sun Jun 09, 2024 9:48 am Post subject: Re: OpenRC : split-usr or merged-usr ? |
|
|
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 |
|
Back to top |
|
|
miket Guru
Joined: 28 Apr 2007 Posts: 497 Location: Gainesville, FL, USA
|
Posted: Sun Jun 09, 2024 8:39 pm Post subject: |
|
|
acarstoiu wrote: | In Code: | /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 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. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20485
|
Posted: Sun Jun 09, 2024 8:57 pm Post subject: |
|
|
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/ _________________ Quis separabit? Quo animo?
Last edited by pjp on Sun Jun 09, 2024 11:48 pm; edited 1 time in total |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5109 Location: Bavaria
|
Posted: Sun Jun 09, 2024 11:15 pm Post subject: Re: OpenRC : split-usr or merged-usr ? |
|
|
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 _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
|