xentaur
diff build-xenomips-image @ 17:6d2b4b61733f
messages
author | igor |
---|---|
date | Thu Sep 20 16:34:22 2007 +0300 (2007-09-20) |
parents | b4bc66066586 |
children | 7d69d81e680c |
line diff
1.1 --- a/build-xenomips-image Thu Sep 20 15:47:17 2007 +0300 1.2 +++ b/build-xenomips-image Thu Sep 20 16:34:22 2007 +0300 1.3 @@ -33,6 +33,13 @@ 1.4 WORK_DIR=${XENOMIPS_FS_NAME%%.img} 1.5 WORK_DIR2=/tmp/xenomips-build 1.6 1.7 +myecho() 1.8 +{ 1.9 + echo '**************************' 1.10 + echo "$@" 1.11 + echo '**************************' 1.12 +} 1.13 + 1.14 build_and_install_dynamips() 1.15 { 1.16 OLD_PWD="`pwd`" 1.17 @@ -55,8 +62,8 @@ 1.18 cd ${OLD_PWD} 1.19 } 1.20 1.21 - 1.22 -dd if=/dev/zero of=${XENOMIPS_FS_NAME} count=${XENOMIPS_FS_SIZE} bs=1024 1.23 +myecho Preapring Xenomips filesystem 1.24 +dd if=/dev/zero of=${XENOMIPS_FS_NAME} seek=${XENOMIPS_FS_SIZE} bs=1024 count=1 1.25 mkfs.ext3 -F ${XENOMIPS_FS_NAME} 1.26 mkdir -p ${WORK_DIR} ${WORK_DIR2} 1.27 mount -o loop ${XENOMIPS_FS_NAME} ${WORK_DIR} 1.28 @@ -121,6 +128,7 @@ 1.29 1.30 if echo $CONFIG_FS_BUILD | grep -qi ^y 1.31 then 1.32 + myecho Preapring Xenomips config filesystem 1.33 dd if=/dev/zero of=${CONFIG_FS_NAME} bs=1k count=${CONFIG_FS_SIZE} 1.34 mkfs.ext3 -F ${CONFIG_FS_NAME} 1.35 1.36 @@ -134,6 +142,7 @@ 1.37 1.38 if echo $IOS_FS_BUILD | grep -qi ^y 1.39 then 1.40 + myecho Preapring filesystem with IOSes 1.41 dd if=/dev/zero of=${IOS_FS_NAME} bs=1k count=${CONFIG_FS_SIZE} 1.42 mkfs.ext3 -F ${IOS_FS_NAME} 1.43 mount -o loop ${IOS_FS_NAME} ${WORK_DIR}