diff options
Diffstat (limited to 'profiles/releases/23.0')
-rw-r--r-- | profiles/releases/23.0/profile.bashrc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/profiles/releases/23.0/profile.bashrc b/profiles/releases/23.0/profile.bashrc new file mode 100644 index 000000000000..258d9754e5bb --- /dev/null +++ b/profiles/releases/23.0/profile.bashrc @@ -0,0 +1,20 @@ +if [[ "${EBUILD_PHASE}" == "setup" ]] ; then + if [[ ! -h "${EROOT%/}/bin" ]] && [[ "${PROFILE_23_USRTYPE}" != "split-usr" ]] ; then + eerror "" + eerror "Your profile is of type merged-usr, but your directories" + eerror "on-disk are of type split-usr." + eerror "Please switch back to your last valid profile setting and" + eerror "read the documentation about merged-usr and profile changes." + eerror "" + die "ERROR: 23.0 merged-usr profile, but disk is split-usr" + fi + if [[ -h "${EROOT%/}/bin" ]] && [[ "${PROFILE_23_USRTYPE}" == "split-usr" ]] ; then + eerror "" + eerror "Your profile is of type split-usr, but your directories" + eerror "on-disk are of type merged-usr." + eerror "Please switch back to your last valid profile setting and" + eerror "read the documentation about merged-usr and profile changes." + eerror "" + die "ERROR: 23.0 split-usr profile, but disk is merged-usr" + fi +fi |