Make the disks random sizes from 1-3 GB, for more excitement.
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 30 Jan 2015 11:25:14 +0000 (11:25 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 30 Jan 2015 11:25:14 +0000 (11:25 +0000)
Makefile

index f83471f..4fbfe32 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,7 @@ init: init.c
 
 %.img:
        rm -f $@
-       truncate -s 1G $@
+       truncate -s $$(( RANDOM % 3 + 1 ))G $@
        echo '2048,,L' | sfdisk $@
 
 clean: