From 1d84d6940e5242220bc478647c56aae02c4263d3 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Fri, 28 Jun 2013 10:22:27 +0200 Subject: [PATCH] TEST-04-FULL-SYSTEMD/test.sh: dlfgjlkdfjgldfj --- test/TEST-04-FULL-SYSTEMD/test.sh | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/test/TEST-04-FULL-SYSTEMD/test.sh b/test/TEST-04-FULL-SYSTEMD/test.sh index aaed32a..957445b 100755 --- a/test/TEST-04-FULL-SYSTEMD/test.sh +++ b/test/TEST-04-FULL-SYSTEMD/test.sh @@ -5,10 +5,10 @@ TEST_DESCRIPTION="Full systemd serialization/deserialization test with /usr moun export KVERSION=${KVERSION-$(uname -r)} # Uncomment this to debug failures -#DEBUGFAIL="rd.shell rd.break" +DEBUGFAIL="rd.shell rd.break" #DEBUGFAIL="rd.shell" #DEBUGOUT="quiet systemd.log_level=debug systemd.log_target=console loglevel=77 rd.info rd.debug" -DEBUGOUT="loglevel=0 systemd.log_level=debug" +DEBUGOUT="loglevel=0 " client_run() { local test_name="$1"; shift local client_opts="$*" @@ -21,7 +21,7 @@ client_run() { -hdb $TESTDIR/usr.btrfs \ -hdc $TESTDIR/result \ -m 256M -smp 2 -nographic \ - -net none -kernel /boot/vmlinuz-$KVERSION \ + -net none \ -append "root=LABEL=dracut $client_opts rd.retry=3 console=ttyS0,115200n81 selinux=0 $DEBUGOUT $DEBUGFAIL" \ -initrd $TESTDIR/initramfs.testing @@ -72,7 +72,7 @@ test_setup() { dracut_install sh df free ls shutdown poweroff stty cat ps ln ip route \ mount dmesg ifconfig dhclient mkdir cp ping dhclient \ - umount strace less setsid tree systemctl + umount strace less setsid tree systemctl reset for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do [ -f ${_terminfodir}/l/linux ] && break @@ -87,12 +87,17 @@ test_setup() { inst /lib/systemd/systemd-remount-fs inst /lib/systemd/system/systemd-journal-flush.service inst /etc/sysconfig/init + inst /lib/systemd/system/slices.target + inst /lib/systemd/system/system.slice + dracut_install -o /lib/systemd/system/dracut* # make a journal directory mkdir -p $initdir/var/log/journal # install some basic config files dracut_install -o \ + /etc/machine-id \ + /etc/adjtime \ /etc/sysconfig/init \ /etc/passwd \ /etc/shadow \ @@ -106,10 +111,6 @@ test_setup() { # we want an empty environment > $initdir/etc/environment - > $initdir/etc/machine-id - - # set the hostname - echo systemd-testsuite > $initdir/etc/hostname # setup the testsuite target cat >$initdir/etc/systemd/system/testsuite.target <