3 TEST_DESCRIPTION
="https://github.com/systemd/systemd/issues/2467"
5 .
$TEST_BASE_DIR/test-functions
8 create_empty_image_rootdir
10 # Create what will eventually be our root filesystem onto an overlay
13 eval $
(udevadm info
--export --query=env
--name=${LOOPDEV}p2
)
15 setup_basic_environment
16 mask_supporting_services
17 dracut_install true
rm socat
19 # setup the testsuite service
20 cat >$initdir/etc
/systemd
/system
/testsuite.service
<<'EOF'
22 Description=Testsuite service
26 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'
29 cat >$initdir/etc
/systemd
/system
/test.socket
<<'EOF'
31 ListenStream=/run/test.ctl
34 cat > $initdir/etc
/systemd
/system
/test.service
<<'EOF'
37 ConditionPathExistsGlob=/tmp/nonexistent