Просмотр исходного кода

create a target file with qemu

Waldemar Brodkorb 13 лет назад
Родитель
Сommit
0acb2fc101
1 измененных файлов с 2 добавлено и 4 удалено
  1. 2 4
      scripts/create.sh

+ 2 - 4
scripts/create.sh

@@ -142,16 +142,14 @@ done
 tgt=$1
 tgt=$1
 src=$2
 src=$2
 
 
-if [[ ! -b $tgt ]]; then
-	print -u2 "'$tgt' is not a block device, exiting"
-	exit 1
-fi
 if [[ ! -f $src ]]; then
 if [[ ! -f $src ]]; then
 	print -u2 "'$src' is not a file, exiting"
 	print -u2 "'$src' is not a file, exiting"
 	exit 1
 	exit 1
 fi
 fi
 (( quiet )) || print "Installing $src on $tgt."
 (( quiet )) || print "Installing $src on $tgt."
 
 
+qemu-img create -f raw $tgt 524288k
+
 case $ostype {
 case $ostype {
 (DragonFly|*BSD*)
 (DragonFly|*BSD*)
 	basedev=${tgt%c}
 	basedev=${tgt%c}