--- mage/branches/alx-0_6_0/profiles/alx-060/forced-uninstall 2011/08/11 09:32:02 2727 +++ mage/branches/alx-0_6_0/profiles/alx-060/forced-uninstall 2011/08/11 19:59:43 2753 @@ -18,7 +18,13 @@ NEW_ALX_DHCP_START="-T 10 -t 5 -n -i" NEW_ALX_DHCP_STOP="" NEW_MIN_DISK_SPACE="85000" -NEW_ALX_PLUGINS="/etc/alxconfig-ng/plugins" +NEW_ALX_PLUGINS="/usr/lib/alxconfig-ng/plugins" + +# fake mage upgrade to prevent annoying error messages +if [[ ! -x /usr/sbin/mageupgrade ]] +then + mageupgrade() { true; }; export -f mageupgrade +fi read_value() { @@ -99,6 +105,14 @@ ln -snf /usr/mage/profiles/${MAGEPROFILE} /etc/mage-profile fi +# fix missing /dev/root device +if [[ ! -e /dev/root ]] +then + echo "fixing missing /dev/root symlink ..." + rootdev=$(basename $(mount | grep ' / ' | cut -d' ' -f1)) + [[ -e /dev/${rootdev} ]] && ln -snf ${rootdev} /dev/root +fi + # update mage3 -> mage4 if [[ -z $(magequery -n mage) ]] then @@ -166,13 +180,6 @@ then # first keep some important files - # fix missing /dev/root device - if [[ ! -e /dev/root ]] - then - rootdev=$(basename $(mount | grep ' / ' | cut -d' ' -f1)) - [[ -e /dev/${rootdev} ]] && ln -snf ${rootdev} /dev/root - fi - # export bootstrap to not start any services export MAGE_BOOTSTRAP=true mage install ${BASESYSTEM}