20 |
NEW_MIN_DISK_SPACE="85000" |
NEW_MIN_DISK_SPACE="85000" |
21 |
NEW_ALX_PLUGINS="/etc/alxconfig-ng/plugins" |
NEW_ALX_PLUGINS="/etc/alxconfig-ng/plugins" |
22 |
|
|
23 |
|
# fake mage upgrade to prevent annoying error messages |
24 |
|
if [[ ! -x /usr/sbin/mageupgrade ]] |
25 |
|
then |
26 |
|
mageupgrade() { true; }; export -f mageupgrade |
27 |
|
fi |
28 |
|
|
29 |
read_value() |
read_value() |
30 |
{ |
{ |
31 |
local file=$1 |
local file=$1 |
105 |
ln -snf /usr/mage/profiles/${MAGEPROFILE} /etc/mage-profile |
ln -snf /usr/mage/profiles/${MAGEPROFILE} /etc/mage-profile |
106 |
fi |
fi |
107 |
|
|
108 |
|
# fix missing /dev/root device |
109 |
|
if [[ ! -e /dev/root ]] |
110 |
|
then |
111 |
|
echo "fixing missing /dev/root symlink ..." |
112 |
|
rootdev=$(basename $(mount | grep ' / ' | cut -d' ' -f1)) |
113 |
|
[[ ! -e /dev/${rootdev} ]] && ln -snf ${rootdev} /dev/root |
114 |
|
fi |
115 |
|
|
116 |
# update mage3 -> mage4 |
# update mage3 -> mage4 |
117 |
if [[ -z $(magequery -n mage) ]] |
if [[ -z $(magequery -n mage) ]] |
118 |
then |
then |
180 |
then |
then |
181 |
# first keep some important files |
# first keep some important files |
182 |
|
|
|
# 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 |
|
|
|
|
183 |
# export bootstrap to not start any services |
# export bootstrap to not start any services |
184 |
export MAGE_BOOTSTRAP=true |
export MAGE_BOOTSTRAP=true |
185 |
mage install ${BASESYSTEM} |
mage install ${BASESYSTEM} |