To help debugging issues, name the different rootfs' differently (i.e.
include the name of the test and whether it is the server or client
part).
export PATH=/usr/sbin:/usr/bin:/sbin:/bin
exec > /dev/console 2>&1
-echo "made it to the rootfs!"
+echo "made it to the NFS client rootfs!"
while read -r dev _ fstype opts rest || [ -n "$dev" ]; do
[ "$fstype" != "nfs" ] && [ "$fstype" != "nfs4" ] && continue
export TERM=linux
export PS1='nfstest-server:\w\$ '
: > /dev/watchdog
-echo "made it to the rootfs!"
+echo "made it to the NFS server rootfs!"
echo server > /proc/sys/kernel/hostname
wait_for_if_link() {
export PATH=/usr/sbin:/usr/bin:/sbin:/bin
exec > /dev/console 2>&1
-echo "made it to the rootfs!"
+echo "made it to the iSCSI client rootfs!"
while read -r dev _ fstype opts rest || [ -n "$dev" ]; do
[ "$fstype" != "ext4" ] && continue
echo "iscsi-OK $dev $fstype $opts" | dd oflag=direct,dsync of=/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_marker status=none
export PATH=/usr/sbin:/usr/bin:/sbin:/bin
export TERM=linux
export PS1='server:\w\$ '
-echo "made it to the rootfs!"
+echo "made it to the iSCSI server rootfs!"
echo server > /proc/sys/kernel/hostname
wait_for_if_link() {
export PATH=/usr/sbin:/usr/bin:/sbin:/bin
exec > /dev/console 2>&1
-echo "made it to the rootfs!"
+echo "made it to the iSCSI multi client rootfs!"
while read -r dev _ fstype opts rest || [ -n "$dev" ]; do
[ "$fstype" != "ext4" ] && continue
echo "iscsi-OK $dev $fstype $opts" | dd oflag=direct,dsync of=/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_marker status=none
export PATH=/usr/sbin:/usr/bin:/sbin:/bin
export TERM=linux
export PS1='server:\w\$ '
-echo "made it to the rootfs!"
+echo "made it to the iSCSI multi server rootfs!"
echo server > /proc/sys/kernel/hostname
wait_for_if_link() {
export PATH=/usr/sbin:/usr/bin:/sbin:/bin
exec > /dev/console 2>&1
-echo "made it to the rootfs!"
+echo "made it to the NBD client rootfs!"
while read -r dev fs fstype opts rest || [ -n "$dev" ]; do
[ "$dev" = "rootfs" ] && continue
export PATH=/usr/sbin:/usr/bin:/sbin:/bin
export TERM=linux
export PS1='nbdtest-server:\w\$ '
-echo "made it to the rootfs!"
+echo "made it to the NBD server rootfs!"
echo server > /proc/sys/kernel/hostname
wait_for_if_link() {
: > /dev/watchdog
exec > /dev/console 2>&1
-echo "made it to the rootfs!"
+echo "made it to the test rootfs!"
if command -v systemctl > /dev/null 2>&1; then
systemctl --failed --no-legend --no-pager >> /run/failed