diskimg: move variant settings to pre.inc.sh
This commit is contained in:
parent
9f1c80d2c7
commit
e0a457879e
@ -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 || \
|
||||
|
7
platforms/diskimg/pre.inc.sh
Normal file
7
platforms/diskimg/pre.inc.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user