diskimg: new platform aimed at creating disk images for quick installation via dd
This commit is contained in:
parent
09c06fb9d8
commit
bde8681be1
@ -2,13 +2,11 @@
|
||||
[ -e $TARGETDIR/platforms/$PLATFORM/pre.inc.sh ] && . $TARGETDIR/platforms/$PLATFORM/pre.inc.sh
|
||||
|
||||
[ "$PRODUCT_NAME" ] && \
|
||||
MEDIA_NAME=`PLATFORM=$PRODUCT_NAME media_name` ||
|
||||
MEDIA_NAME=`media_name`
|
||||
MEDIA_NAME=`PLATFORM=$PRODUCT_NAME VARIANT=$VARIANT medium_name` ||
|
||||
MEDIA_NAME=`VARIANT=$VARIANT medium_name`
|
||||
|
||||
#if [ "$FORCE" = "1" -o ! -e "$LOCALSTATEDIR/$MEDIA_NAME" ]; then
|
||||
|
||||
[ $MEDIA = "raw" ] && create_raw_filesystem $LOCALSTATEDIR/$MEDIA_NAME $MEDIA_SIZE 1024k $ROOTFS
|
||||
|
||||
#create_livecd
|
||||
initialize_root_dir
|
||||
create_rpm_database
|
||||
|
3
platforms/diskimg/Makefile
Normal file
3
platforms/diskimg/Makefile
Normal file
@ -0,0 +1,3 @@
|
||||
$(MAKEDIST_TARGET)-diskimg: openmamba-install-scripts
|
||||
$(MAKEDIST_TARGET)-diskimg-en:
|
||||
$(MAKEDIST_TARGET)-diskimg-it:
|
0
platforms/diskimg/Makefile.defs
Normal file
0
platforms/diskimg/Makefile.defs
Normal file
16
platforms/diskimg/post.inc.sh
Normal file
16
platforms/diskimg/post.inc.sh
Normal file
@ -0,0 +1,16 @@
|
||||
case $VARIANT in
|
||||
bananapi) ROOTFSINSTALL_ADD="-bpi"; DEVICEARCH=arm ;;
|
||||
raspberrypi) ROOTFSINSTALL_ADD="-rpi"; DEVICEARCH=arm ;;
|
||||
cubox) ROOTFSINSTALL_ADD="-cubox"; DEVICEARCH=arm ;;
|
||||
*) ROOTFSINSTALL_ADD= ; DEVICEARCH=$ARCH ;;
|
||||
esac
|
||||
|
||||
/usr/sbin/rootfsinstall -y $ROOTFSINSTALL_ADD $LOOPDEV \
|
||||
$LOCALSTATEDIR/openmamba-rootfs-light-$LANGUAGE.$DEVICEARCH.tar.xz || \
|
||||
{ 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; }; }
|
||||
|
12
platforms/diskimg/settings.inc
Normal file
12
platforms/diskimg/settings.inc
Normal file
@ -0,0 +1,12 @@
|
||||
# raw disk image
|
||||
MEDIA=raw
|
||||
MEDIA_SIZE=3584
|
||||
|
||||
KERNEL_IGNORE=1
|
||||
DISTROMATIC=off
|
||||
|
||||
if [ "$SUBPLATFORM" ]; then
|
||||
PRODUCT_NAME=light
|
||||
VARIANT=$SUBPLATFORM
|
||||
SUBPLATFORM=
|
||||
fi
|
Loading…
Reference in New Issue
Block a user