diff options
author | Waldemar Brodkorb <mail@waldemar-brodkorb.de> | 2012-08-10 05:04:37 +0200 |
---|---|---|
committer | Waldemar Brodkorb <mail@waldemar-brodkorb.de> | 2012-08-10 05:04:37 +0200 |
commit | 0acb2fc101e810cafba184ea3cd9188ce8d948df (patch) | |
tree | 8e9bfb156fc0aacc116968da6a47147ee950dd78 | |
parent | e81a1e96ae2bc938d2255bbc71eace7082b0c0cc (diff) |
create a target file with qemu
-rwxr-xr-x | scripts/create.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/create.sh b/scripts/create.sh index ab4ac8635..e68589812 100755 --- a/scripts/create.sh +++ b/scripts/create.sh @@ -142,16 +142,14 @@ done tgt=$1 src=$2 -if [[ ! -b $tgt ]]; then - print -u2 "'$tgt' is not a block device, exiting" - exit 1 -fi if [[ ! -f $src ]]; then print -u2 "'$src' is not a file, exiting" exit 1 fi (( quiet )) || print "Installing $src on $tgt." +qemu-img create -f raw $tgt 524288k + case $ostype { (DragonFly|*BSD*) basedev=${tgt%c} |