#DEBUGFAIL="rdinitdebug rdnetdebug"
test_run() {
- $testdir/run-qemu -hda root.ext2 -m 128M -nographic \
+ $testdir/run-qemu -hda root.ext2 -m 256M -nographic \
-net none -kernel /boot/vmlinuz-$KVERSION \
-append "root=/dev/dracut/root rw quiet console=ttyS0,115200n81 $DEBUGFAIL" \
-initrd initramfs.testing
-f initramfs.makeroot $KVERSION || return 1
rm -rf overlay
# Invoke KVM and/or QEMU to actually create the target filesystem.
- $testdir/run-qemu -hda root.ext2 -m 128M -nographic -net none \
+ $testdir/run-qemu -hda root.ext2 -m 256M -nographic -net none \
-kernel "/boot/vmlinuz-$kernel" \
-append "root=/dev/dracut/root rw rootfstype=ext2 quiet console=ttyS0,115200n81" \
-initrd initramfs.makeroot || return 1
inst ./cryptroot-ask /sbin/cryptroot-ask
)
sudo $basedir/dracut -l -i overlay / \
- -m "dash crypt lvm mdraid udev-rules base rootfs-block" \
-d "ata_piix ext2 sd_mod" \
-f initramfs.testing $KVERSION || return 1
}
# Start server first
echo "NFS TEST SETUP: Starting DHCP/NFS server"
- $testdir/run-qemu -hda server.ext2 -m 128M -nographic \
+ $testdir/run-qemu -hda server.ext2 -m 256M -nographic \
-net nic,macaddr=52:54:00:12:34:56,model=e1000 \
-net socket,mcast=230.0.0.1:1234 \
-serial udp:127.0.0.1:9999 \
return 1
fi
- $testdir/run-qemu -hda client.img -m 128M -nographic \
+ $testdir/run-qemu -hda client.img -m 256M -nographic \
-net nic,macaddr=$mac,model=e1000 \
-net socket,mcast=230.0.0.1:1234 \
-kernel /boot/vmlinuz-$KVERSION \
# Make client's dracut image
$basedir/dracut -l -i overlay / \
- -m "dash udev-rules base network nfs debug" \
-d "e1000 nfs sunrpc" \
-f initramfs.testing $KVERSION || return 1
}
# Start server first
echo "iSCSI TEST SETUP: Starting DHCP/iSCSI server"
- $testdir/run-qemu -hda server.ext2 -hdb root.ext2 -m 128M -nographic \
+ $testdir/run-qemu -hda server.ext2 -hdb root.ext2 -m 256M -nographic \
-net nic,macaddr=52:54:00:12:34:56,model=e1000 \
-net socket,mcast=230.0.0.1:1234 \
-serial udp:127.0.0.1:9999 \
return 1
fi
- $testdir/run-qemu -hda client.img -m 128M -nographic \
+ $testdir/run-qemu -hda client.img -m 256M -nographic \
-net nic,macaddr=52:54:00:12:34:00,model=e1000 \
-net socket,mcast=230.0.0.1:1234 \
-kernel /boot/vmlinuz-$KVERSION \
return 1
fi
# Invoke KVM and/or QEMU to actually create the target filesystem.
- $testdir/run-qemu -hda root.ext2 -hdb client.img -m 128M -nographic -net none \
+ $testdir/run-qemu -hda root.ext2 -hdb client.img -m 256M -nographic -net none \
-kernel "/boot/vmlinuz-$kernel" \
-append "root=/dev/dracut/root rw rootfstype=ext2 quiet console=ttyS0,115200n81" \
-initrd initramfs.makeroot || return 1
inst_simple ./hard-off.sh /emergency/01hard-off.sh
# inst ./cryptroot-ask /sbin/cryptroot-ask
)
-# -m "debug dash crypt lvm mdraid udev-rules base rootfs-block iscsi" \
sudo $basedir/dracut -l -i overlay / \
- -m "debug dash udev-rules base rootfs-block iscsi" \
-d "ata_piix ext2 sd_mod" \
-f initramfs.testing $KVERSION || return 1
echo "NBD TEST SETUP: Starting DHCP/NBD server"
$testdir/run-qemu -hda server.ext2 -hdb nbd.ext2 -hdc encrypted.ext2 \
- -m 128M -nographic \
+ -m 256M -nographic \
-net nic,macaddr=52:54:00:12:34:56,model=e1000 \
-net socket,mcast=230.0.0.1:1234 \
-serial udp:127.0.0.1:9999 \
return 1
fi
- $testdir/run-qemu -hda flag.img -m 128M -nographic \
+ $testdir/run-qemu -hda flag.img -m 256M -nographic \
-net nic,macaddr=$mac,model=e1000 \
-net socket,mcast=230.0.0.1:1234 \
-kernel /boot/vmlinuz-$KVERSION \
rm -rf overlay
# Invoke KVM and/or QEMU to actually create the target filesystem.
- $testdir/run-qemu -hda flag.img -hdb encrypted.ext2 -m 128M \
+ $testdir/run-qemu -hda flag.img -hdb encrypted.ext2 -m 256M \
-nographic -net none \
-kernel "/boot/vmlinuz-$kernel" \
-append "root=/dev/dracut/root rw quiet console=ttyS0,115200n81" \
-f initramfs.server $KVERSION || return 1
sudo $basedir/dracut -l -i overlay / \
- -m "dash crypt lvm mdraid udev-rules base rootfs-block nbd debug" \
-d "ata_piix ext2 ext3 sd_mod e1000" \
-f initramfs.testing $KVERSION || return 1
}