X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;ds=sidebyside;f=test%2FTEST-14-MACHINE-ID%2Ftest.sh;h=72d7eacbf6f1dd41bc9a8815ea170b30ccfaf66c;hb=51fa85913c4d1826414c6fa5a2e235f65425d91a;hp=c22fc7c3c060acd019e98c9a7d0bdf0542cf68a6;hpb=cc469c3dfc398210f38f819d367e68646c71d8da;p=thirdparty%2Fsystemd.git diff --git a/test/TEST-14-MACHINE-ID/test.sh b/test/TEST-14-MACHINE-ID/test.sh index c22fc7c3c06..72d7eacbf6f 100755 --- a/test/TEST-14-MACHINE-ID/test.sh +++ b/test/TEST-14-MACHINE-ID/test.sh @@ -6,9 +6,7 @@ TEST_NO_NSPAWN=1 . $TEST_BASE_DIR/test-functions test_setup() { - create_empty_image - mkdir -p $TESTDIR/root - mount ${LOOPDEV}p1 $TESTDIR/root + create_empty_image_rootdir # Create what will eventually be our root filesystem onto an overlay ( @@ -16,6 +14,7 @@ test_setup() { eval $(udevadm info --export --query=env --name=${LOOPDEV}p2) setup_basic_environment + mask_supporting_services printf "556f48e837bc4424a710fa2e2c9d3e3c\ne3d\n" >$initdir/etc/machine-id dracut_install mount cmp @@ -74,16 +73,6 @@ chmod +x $initdir/test-machine-id-setup.sh setup_testsuite ) - - # mask some services that we do not want to run in these tests - ln -s /dev/null $initdir/etc/systemd/system/systemd-hwdb-update.service - ln -s /dev/null $initdir/etc/systemd/system/systemd-journal-catalog-update.service - ln -s /dev/null $initdir/etc/systemd/system/systemd-networkd.service - ln -s /dev/null $initdir/etc/systemd/system/systemd-networkd.socket - ln -s /dev/null $initdir/etc/systemd/system/systemd-resolved.service - - ddebug "umount $TESTDIR/root" - umount $TESTDIR/root } do_test "$@"