3 TEST_DESCRIPTION
="https://github.com/systemd/systemd/issues/2691"
6 .
$TEST_BASE_DIR/test-functions
11 mkdir
-p $TESTDIR/root
12 mount
${LOOPDEV}p1
$TESTDIR/root
14 # Create what will eventually be our root filesystem onto an overlay
17 eval $
(udevadm info
--export --query=env
--name=${LOOPDEV}p2
)
19 setup_basic_environment
21 # setup the testsuite service
22 cat >$initdir/etc
/systemd
/system
/testsuite.service
<<'EOF'
24 Description=Testsuite service
28 ExecStart=/bin/sh -c '>/testok'
30 ExecStop=/bin/sh -c 'kill -SEGV $$$$'
37 # mask some services that we do not want to run in these tests
38 ln -s /dev
/null
$initdir/etc
/systemd
/system
/systemd-hwdb-update.service
39 ln -s /dev
/null
$initdir/etc
/systemd
/system
/systemd-journal-catalog-update.service
40 ln -s /dev
/null
$initdir/etc
/systemd
/system
/systemd-networkd.service
41 ln -s /dev
/null
$initdir/etc
/systemd
/system
/systemd-networkd.socket
42 ln -s /dev
/null
$initdir/etc
/systemd
/system
/systemd-resolved.service
44 ddebug
"umount $TESTDIR/root"