pentoo-updater: profile migration

This commit is contained in:
Rick Farina (Zero_Chaos) 2020-12-07 15:37:16 -05:00
parent fccb44696c
commit 02d0e3fc15
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC

View file

@ -146,11 +146,11 @@ check_profile () {
fi fi
# profile migration routine for amd64 17.0->17.1 # profile migration routine for amd64 17.0->17.1
#if [ "${ARCH}" = "amd64" ]; then if [ "${ARCH}" = "amd64" ]; then
#if [ -L "/lib" ] || [ -e "/lib32" ] || [ -e "/usr/lib32" ]; then if [ -L "/lib" ] || [ -e "/lib32" ] || [ -e "/usr/lib32" ]; then
# migrate_profile migrate_profile
#fi fi
#fi fi
} }
migrate_profile() { migrate_profile() {
@ -165,11 +165,10 @@ migrate_profile() {
if readlink /etc/portage/make.profile | grep -qE 'pentoo/hardened/linux/amd64$|pentoo/hardened/linux/amd64/'; then if readlink /etc/portage/make.profile | grep -qE 'pentoo/hardened/linux/amd64$|pentoo/hardened/linux/amd64/'; then
check_profile force check_profile force
fi fi
fi
if [ -L "/lib32" ] || [ -L "/usr/lib32" ]; then
rebuild_lib32 rebuild_lib32
rebuild_lib32 rebuild_lib32 || WE_FAILED=1
rebuild_lib32
rebuild_lib32
rebuild_lib32 || die
fi fi
if [ -L "/lib32" ] && ! qfile /lib32 > /dev/null 2>&1; then if [ -L "/lib32" ] && ! qfile /lib32 > /dev/null 2>&1; then
rm -rf "/lib32" rm -rf "/lib32"