2015-01-25 17:09:33 +01:00
|
|
|
[ "$RELEASE" -a "$RELEASE" != "devel" ] && RELEASE_ADD="-$RELEASE" || RELEASE_ADD=
|
2014-12-08 12:32:29 +01:00
|
|
|
if [ "$MODE" = "rootfsinstall" ]; then
|
2021-04-24 14:13:52 +02:00
|
|
|
DISKIMG_FILE="$LOCALSTATEDIR/${BASE_IMAGE}${RELEASE_ADD}-$LANGUAGE.$DEVICEARCH.tar.xz"
|
2015-01-25 17:09:33 +01:00
|
|
|
echo "Using image $DISKIMG_FILE..."
|
|
|
|
/usr/sbin/rootfsinstall -y $ROOTFSINSTALL_ADD $LOOPDEV $DISKIMG_FILE || \
|
2014-12-08 12:32:29 +01:00
|
|
|
{ retcode=$?
|
|
|
|
echo "$makedist_me: fatal error, aborting installation" >&2
|
|
|
|
echo "$makedist_me: exit code was: $retcode" >&2
|
|
|
|
echo "$makedist_me: sleeping 600 seconds"
|
|
|
|
sleep 600
|
|
|
|
{ (exit 1); exit 1; }; }
|
|
|
|
elif [ "$MODE" = "usbinstall" ]; then
|
2015-01-25 17:09:33 +01:00
|
|
|
DISKIMG_FILE="$LOCALSTATEDIR/openmamba${RELEASE_ADD}-livecd-$LANGUAGE.$ARCH.iso"
|
|
|
|
echo "Using image $DISKIMG_FILE..."
|
2014-12-08 12:32:29 +01:00
|
|
|
# FIXME: current hosting system requirements:
|
|
|
|
# grub-efi.i586 mactel-boot
|
2015-01-25 17:09:33 +01:00
|
|
|
/usr/sbin/usbinstall $LOOPDEV $DISKIMG_FILE -y || \
|
2014-12-08 12:32:29 +01:00
|
|
|
{ retcode=$?
|
|
|
|
echo "$makedist_me: fatal error, aborting installation" >&2
|
|
|
|
echo "$makedist_me: exit code was: $retcode" >&2
|
|
|
|
echo "$makedist_me: sleeping 600 seconds"
|
|
|
|
sleep 600
|
|
|
|
{ (exit 1); exit 1; }; }
|
|
|
|
else
|
|
|
|
echo "$makedist_me: MODE is undefined; aborting."
|
|
|
|
{ (exit 1); exit 1; };
|
|
|
|
fi
|