165 |
if [[ -z $(magequery -n ${BASESYSTEM}) ]] |
if [[ -z $(magequery -n ${BASESYSTEM}) ]] |
166 |
then |
then |
167 |
# first keep some important files |
# first keep some important files |
168 |
|
|
169 |
|
# fix missing /dev/root device |
170 |
|
if [[ ! -e /dev/root ]] |
171 |
|
then |
172 |
|
rootdev=$(basename $(mount | grep ' / ' | cut -d' ' -f1)) |
173 |
|
[[ -e /dev/${rootdev} ]] && ln -snf ${rootdev} /dev/root |
174 |
|
fi |
175 |
|
|
176 |
# export bootstrap to not start any services |
# export bootstrap to not start any services |
177 |
export MAGE_BOOTSTRAP=true |
export MAGE_BOOTSTRAP=true |
178 |
mage install ${BASESYSTEM} |
mage install ${BASESYSTEM} |