diskimg: added usbinstall support for usb pendrive for x86/x86_64 disk images support as well
This commit is contained in:
parent
d2474d6bb8
commit
afbafae681
@ -1,16 +1,31 @@
|
|||||||
case $VARIANT in
|
case $VARIANT in
|
||||||
bananapi) ROOTFSINSTALL_ADD="-bpi"; DEVICEARCH=arm ;;
|
bananapi) MODE=rootfsinstall; ROOTFSINSTALL_ADD="-bpi"; DEVICEARCH=arm ;;
|
||||||
raspberrypi) ROOTFSINSTALL_ADD="-rpi"; DEVICEARCH=arm ;;
|
raspberrypi) MODE=rootfsinstall; ROOTFSINSTALL_ADD="-rpi"; DEVICEARCH=arm ;;
|
||||||
cubox) ROOTFSINSTALL_ADD="-cubox"; DEVICEARCH=arm ;;
|
cubox) MODE=rootfsinstall; ROOTFSINSTALL_ADD="-cubox" ;;
|
||||||
*) ROOTFSINSTALL_ADD= ; DEVICEARCH=$ARCH ;;
|
livecd) MODE=usbinstall; ROOTFSINSTALL_ADD="-cubox" ;;
|
||||||
|
*) MODE=rootfsinstall; ROOTFSINSTALL_ADD= ; DEVICEARCH=$ARCH ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
/usr/sbin/rootfsinstall -y $ROOTFSINSTALL_ADD $LOOPDEV \
|
if [ "$MODE" = "rootfsinstall" ]; then
|
||||||
$LOCALSTATEDIR/openmamba-rootfs-light-$LANGUAGE.$DEVICEARCH.tar.xz || \
|
/usr/sbin/rootfsinstall -y $ROOTFSINSTALL_ADD $LOOPDEV \
|
||||||
{ retcode=$?
|
$LOCALSTATEDIR/openmamba-rootfs-light-$LANGUAGE.$DEVICEARCH.tar.xz || \
|
||||||
echo "$makedist_me: fatal error, aborting installation" >&2
|
{ retcode=$?
|
||||||
echo "$makedist_me: exit code was: $retcode" >&2
|
echo "$makedist_me: fatal error, aborting installation" >&2
|
||||||
echo "$makedist_me: sleeping 600 seconds"
|
echo "$makedist_me: exit code was: $retcode" >&2
|
||||||
sleep 600
|
echo "$makedist_me: sleeping 600 seconds"
|
||||||
{ (exit 1); exit 1; }; }
|
sleep 600
|
||||||
|
{ (exit 1); exit 1; }; }
|
||||||
|
elif [ "$MODE" = "usbinstall" ]; then
|
||||||
|
# FIXME: current hosting system requirements:
|
||||||
|
# grub-efi.i586 mactel-boot
|
||||||
|
/usr/sbin/usbinstall $LOOPDEV $LOCALSTATEDIR/openmamba-livecd-$LANGUAGE.$ARCH.iso -y || \
|
||||||
|
{ 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
|
||||||
|
Loading…
Reference in New Issue
Block a user