2 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
3 # ex: ts=8 sw=4 sts=4 et filetype=sh
5 TEST_DESCRIPTION
="Basic systemd setup"
6 RUN_IN_UNPRIVILEGED_CONTAINER
=${RUN_IN_UNPRIVILEGED_CONTAINER:-yes}
8 .
$TEST_BASE_DIR/test-functions
12 mkdir
-p $TESTDIR/root
13 mount
${LOOPDEV}p1
$TESTDIR/root
15 # Create what will eventually be our root filesystem onto an overlay
18 eval $
(udevadm info
--export --query=env
--name=${LOOPDEV}p2
)
20 setup_basic_environment
22 # setup the testsuite service
23 cat >$initdir/etc
/systemd
/system
/testsuite.service
<<EOF
25 Description=Testsuite service
26 After=multi-user.target
29 ExecStart=/bin/sh -x -c 'systemctl --state=failed --no-legend --no-pager > /failed ; systemctl daemon-reload ; echo OK > /testok'
37 ddebug
"umount $TESTDIR/root"