diff options
author | Will Woods <wwoods@redhat.com> | 2012-05-01 16:47:51 -0400 |
---|---|---|
committer | Will Woods <wwoods@redhat.com> | 2012-05-01 16:47:51 -0400 |
commit | 86b9226f6b01155c6513689e9670432e0b3be162 (patch) | |
tree | 82c2d08620323846a6aed329c7945c21f5377f70 | |
parent | 177d1d374c95ddce80e66ba744a42de3468ac17f (diff) | |
download | testboot-86b9226f6b01155c6513689e9670432e0b3be162.tar.gz testboot-86b9226f6b01155c6513689e9670432e0b3be162.tar.xz testboot-86b9226f6b01155c6513689e9670432e0b3be162.zip |
add 2nd nic, fix module fetching
-rwxr-xr-x | testboot.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testboot.sh b/testboot.sh index 4c97b7e..9cb6f0d 100755 --- a/testboot.sh +++ b/testboot.sh @@ -57,7 +57,7 @@ get_modules() { echo "$kv" | tee $dir/vmlinuz.kv if [ ! -d /lib/modules/$kv ]; then echo -n "getting modules..." - cp -a $1/moddir /lib/modules/$kv + cp -a $moddir /lib/modules/$kv echo "done" fi } @@ -160,6 +160,7 @@ virt-install --name testboot --ram $ram --graphics $graphics \ --os-type linux --os-variant fedora16 $console \ --disk $disk,size=10 --disk $disk2,size=10 \ --network network=default,model=virtio,mac=52:54:00:03:31:38 \ + --network network=default,model=virtio,mac=52:54:00:03:31:39 \ ${usecd:+--disk $cdrom,device=cdrom} \ ${bootarg:+--boot "$bootarg"} virsh destroy testboot &>/dev/null |