X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=mkext3.sh;h=d362715c25c376f5f8da4fa11c191410704ded40;hb=a4958839c3cffc01a659344996ef0ee6aea86796;hp=d08485eb9ac5d785e95e4fdb5c94b7f7ab21dce1;hpb=0308aefb96a01181b7c161f59377328d2a795406;p=xodist diff --git a/mkext3.sh b/mkext3.sh index d08485e..d362715 100755 --- a/mkext3.sh +++ b/mkext3.sh @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/bash -e # # Copyright © 2008 Andres Salomon # @@ -16,13 +16,12 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -IMG_NAME="DebOLPC" -ROOT_SIZE="512" -IMG_LABEL="DebOLPC" +ROOT_SIZE="1998" +IMG_LABEL="DebXO" +IMG_NAME="" ROOT_DIR="" -CRCIMG="./crcimg.pl" -. functions.sh +. ./functions.sh # @img - fs image to attach loop device to # @offset - if the image is partitioned, the offset to attach at @@ -79,7 +78,7 @@ rm_mount() # @img - image name to create # @size - image size -mk_bootable_img() +create_bootable_img() { img="$1" size="$2" @@ -113,7 +112,7 @@ color cyan/blue white/blue title $IMG_LABEL root (hd0,0) -kernel /bzImage root=LABEL=${IMG_LABEL} rootfstype=ext3 ro +kernel /vmlinuz root=LABEL=${IMG_LABEL} ro boot EOF @@ -158,18 +157,15 @@ mk_ext3_fs() usage() { echo "" 1>&2 - echo "Usage: $0 [] " 1>&2 + echo "Usage: $0 [] " 1>&2 echo "" 1>&2 echo "Options:" 1>&2 echo " -l