]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
boot with network
authorHarald Hoyer <harald@redhat.com>
Tue, 12 May 2009 13:35:22 +0000 (15:35 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 12 May 2009 13:35:22 +0000 (15:35 +0200)
test/test-initramfs

index 2b288d463d93b36e3131934142681167ce551e1b..f1fed7cdd45600b3509b61fd731c4f8a37194418 100755 (executable)
@@ -3,7 +3,15 @@ kernel=$(uname -r)
 [[ -f test/root.ext2 ]] || test/make-test-root
 ./dracut -c test/dracut.conf.test -l -f test/initramfs.testing || exit
 
-qemu-kvm -hda test/root.ext2 -m 512M -nographic -net none \
-    -kernel /boot/vmlinuz-$kernel \
-    -append "root=/dev/sda init=/init rw rootfstype=ext2 quiet ramfsdebug console=ttyS0,115200n81" \
-    -initrd test/initramfs.testing
+#qemu-kvm -hda test/root.ext2 -m 512M -nographic -net none \
+#    -kernel /boot/vmlinuz-$kernel \
+#    -append "root=/dev/sda init=/init rw rootfstype=ext2 quiet ramfsdebug console=ttyS0,115200n81" \
+#    -initrd test/initramfs.testing
+
+qemu-kvm -hda test/root.ext2 -m 512M -nographic  \
+       -net nic,macaddr=52:54:00:12:34:56  \
+       -net user  \
+       -kernel /boot/vmlinuz-$kernel \
+       -initrd test/initramfs.testing \
+       -append "root=/dev/sda init=/init rw rootfstype=ext2 console=ttyS0,115200n81"   
+