]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
TEST-04-FULL-SYSTEMD: fixed poweroff
authorHarald Hoyer <harald@redhat.com>
Tue, 16 Oct 2012 14:20:33 +0000 (16:20 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 16 Oct 2012 14:20:33 +0000 (16:20 +0200)
test/TEST-04-FULL-SYSTEMD/test-init.sh
test/TEST-04-FULL-SYSTEMD/test.sh

index d41f0b0410d98ce318e0f19a77d6ad9dda658597..cb7ce12745a70da1d6cf664b21dac7d94efbf173 100755 (executable)
@@ -37,4 +37,6 @@ if strstr "$CMDLINE" "rd.shell"; then
        strstr "$(setsid --help)" "control" && CTTY="-c"
        setsid $CTTY sh -i
 fi
+set -x
+/usr/bin/systemctl poweroff
 echo "Powering down."
index d76f3d98a627cc48e690897aa4dc616652d41dfb..8f91b32fd97d42241c076ecde26f4963fd025487 100755 (executable)
@@ -131,7 +131,6 @@ After=basic.target
 
 [Service]
 ExecStart=/sbin/test-init
-ExecStopPost=/usr/bin/systemctl poweroff
 Type=oneshot
 StandardInput=tty
 StandardOutput=tty
@@ -141,11 +140,12 @@ EOF
 
         # make the testsuite the default target
         ln -fs testsuite.target $initdir/etc/systemd/system/default.target
-        mkdir -p $initdir/etc/rc.d
-        cat >$initdir/etc/rc.d/rc.local <<EOF
-#!/bin/bash
-exit 0
-EOF
+
+#         mkdir -p $initdir/etc/rc.d
+#         cat >$initdir/etc/rc.d/rc.local <<EOF
+# #!/bin/bash
+# exit 0
+# EOF
 
         # install basic tools needed
         dracut_install sh bash setsid loadkeys setfont \
@@ -263,7 +263,7 @@ EOF
     sudo $basedir/dracut.sh -l -i $TESTDIR/overlay / \
        -a "debug watchdog systemd" \
         -o "network" \
-       -d "piix ide-gd_mod ata_piix btrfs sd_mod i6300esbwdt" \
+       -d "piix ide-gd_mod ata_piix btrfs sd_mod i6300esb ib700wdt" \
        -f $TESTDIR/initramfs.testing $KVERSION || return 1
 
     rm -rf $TESTDIR/overlay