makedist-openmamba-milestone3/platforms/diskimg/post.inc.sh

28 lines
1.2 KiB
Bash
Raw Permalink Normal View History

2015-01-25 16:26:14 +01:00
[ "$RELEASE" -a "$RELEASE" != "devel" ] && RELEASE_ADD="-$RELEASE" || RELEASE_ADD=
2015-01-24 16:37:38 +01:00
if [ "$MODE" = "rootfsinstall" ]; then
2015-01-25 16:26:14 +01:00
DISKIMG_FILE="$LOCALSTATEDIR/openmamba-rootfs-light${RELEASE_ADD}-$LANGUAGE.$DEVICEARCH.tar.xz"
echo "Using image $DISKIMG_FILE..."
/usr/sbin/rootfsinstall -y $ROOTFSINSTALL_ADD $LOOPDEV $DISKIMG_FILE || \
2015-01-24 16:37:38 +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 16:26:14 +01:00
DISKIMG_FILE="$LOCALSTATEDIR/openmamba${RELEASE_ADD}-livecd-$LANGUAGE.$ARCH.iso"
echo "Using image $DISKIMG_FILE..."
2015-01-24 16:37:38 +01:00
# FIXME: current hosting system requirements:
# grub-efi.i586 mactel-boot
2015-01-25 16:26:14 +01:00
/usr/sbin/usbinstall $LOOPDEV $DISKIMG_FILE -y || \
2015-01-24 16:37:38 +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