Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 624828 - sys-apps/baselayout - provide support for merged-usr config
Summary: sys-apps/baselayout - provide support for merged-usr config
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: William Hubbs
URL: https://www.freedesktop.org/wiki/Soft...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-13 03:42 UTC by Mike Gilbert
Modified: 2018-05-31 20:07 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gilbert gentoo-dev 2017-07-13 03:42:39 UTC
The multilib_setup logic needs some modification to support merged-usr systems. Currently, it will convert a /lib -> /usr/lib symlink to a directory if SYMLINK_LIB=no.

More generally, it would be nice if baselayout could take care of setting up symlinks for /bin, /sbin, /lib, /lib64, etc in a stage1 scenario.
Comment 1 Mike Gilbert gentoo-dev 2017-07-13 03:55:59 UTC
In case it wasn't clear, I'm only proposing this as an optional configuration for baselayout, either via a USE flag or a new profile variable.

I am not advocating that we force all Gentoo users to convert their systems. It would just be nice to have the option for those that want it. I am aware of other issues this may cause, but this is a good first step toward supporting it.
Comment 2 Amit Prakash Ambasta 2018-01-02 07:21:54 UTC
Given that 2017.1 profiles are going to be the default now and remove symlinking of lib/lib64 etc, it would be great to have usrmerge implemented in baselayout as an alternate.

Currently, the patches in baselayout-9999 do not accomplish this at all.
Comment 3 William Hubbs gentoo-dev 2018-01-06 17:23:38 UTC
(In reply to Amit Prakash Ambasta from comment #2)
> Given that 2017.1 profiles are going to be the default now and remove
> symlinking of lib/lib64 etc, it would be great to have usrmerge implemented
> in baselayout as an alternate.
> 
> Currently, the patches in baselayout-9999 do not accomplish this at all.

Keep in mind that baselayout will not attempt to migrate a live system; it only sets up the usr merge when stages are built.

Given that, I would like to know what issues you are finding so I can correct them before the release.
Comment 4 William Hubbs gentoo-dev 2018-05-29 22:47:09 UTC
Baselayout-2.6 has a split-usr use flag which is turned on by
default.

If this flag is disabled when stages are built, the following will be
set up as symlinks:

/bin -> usr/bin
/lib* -> usr/lib*
/sbin -> usr/sbin
usr/sbin -> bin
Comment 5 William Hubbs gentoo-dev 2018-05-31 20:07:16 UTC
This is being closed since the functionality is in baselayout-2.6.
It is here for testing at this point, so let us know if there are issues.