diskimg: move variant settings to pre.inc.sh

This commit is contained in:
Silvan Calarco 2015-01-10 12:16:25 +01:00
parent 9f1c80d2c7
commit e0a457879e
2 changed files with 7 additions and 8 deletions

View File

@ -1,11 +1,3 @@
case $VARIANT in
bananapi) MODE=rootfsinstall; ROOTFSINSTALL_ADD="-bpi"; DEVICEARCH=arm ;;
raspberrypi) MODE=rootfsinstall; ROOTFSINSTALL_ADD="-rpi"; DEVICEARCH=arm ;;
cubox) MODE=rootfsinstall; ROOTFSINSTALL_ADD="-cubox" ;;
livecd) MODE=usbinstall; ROOTFSINSTALL_ADD="-cubox" ;;
*) MODE=rootfsinstall; ROOTFSINSTALL_ADD= ; DEVICEARCH=$ARCH ;;
esac
if [ "$MODE" = "rootfsinstall" ]; then
/usr/sbin/rootfsinstall -y $ROOTFSINSTALL_ADD $LOOPDEV \
$LOCALSTATEDIR/openmamba-rootfs-light-$LANGUAGE.$DEVICEARCH.tar.xz || \

View File

@ -0,0 +1,7 @@
case $VARIANT in
bananapi) MODE=rootfsinstall; ROOTFSINSTALL_ADD="-bpi"; DEVICEARCH=arm; MEDIA_SIZE=1920 ;;
raspberrypi) MODE=rootfsinstall; ROOTFSINSTALL_ADD="-rpi"; DEVICEARCH=arm; MEDIA_SIZE=1920 ;;
cubox) MODE=rootfsinstall; ROOTFSINSTALL_ADD="-cubox" DEVICEARCH=arm; MEDIA_SIZE=1920 ;;
livecd) MODE=usbinstall; ROOTFSINSTALL_ADD= ;;
*) MODE=rootfsinstall; ROOTFSINSTALL_ADD= ; DEVICEARCH=$ARCH ;;
esac