3 TEST_DESCRIPTION
="https://github.com/systemd/systemd/issues/2467"
5 .
$TEST_BASE_DIR/test-functions
10 mount
${LOOPDEV}p1
$TESTDIR/root
12 # Create what will eventually be our root filesystem onto an overlay
15 eval $
(udevadm info
--export --query=env
--name=${LOOPDEV}p2
)
17 setup_basic_environment
18 dracut_install true
rm socat
20 # setup the testsuite service
21 cat >$initdir/etc
/systemd
/system
/testsuite.service
<<'EOF'
23 Description=Testsuite service
29 ExecStart=/bin/sh -e -x -c 'rm -f /tmp/nonexistent; systemctl start test.socket; printf x > test.file; socat -t20 OPEN:test.file UNIX-CONNECT:/run/test.ctl; >/testok'
33 cat >$initdir/etc
/systemd
/system
/test.socket
<<'EOF'
35 ListenStream=/run/test.ctl
38 cat > $initdir/etc
/systemd
/system
/test.service
<<'EOF'
41 ConditionPathExistsGlob=/tmp/nonexistent
51 # mask some services that we do not want to run in these tests
52 ln -s /dev
/null
$initdir/etc
/systemd
/system
/systemd-hwdb-update.service
53 ln -s /dev
/null
$initdir/etc
/systemd
/system
/systemd-journal-catalog-update.service
54 ln -s /dev
/null
$initdir/etc
/systemd
/system
/systemd-networkd.service
55 ln -s /dev
/null
$initdir/etc
/systemd
/system
/systemd-networkd.socket
56 ln -s /dev
/null
$initdir/etc
/systemd
/system
/systemd-resolved.service
58 ddebug
"umount $TESTDIR/root"