3 TEST_DESCRIPTION
="https://github.com/systemd/systemd/issues/2730"
6 .
$TEST_BASE_DIR/test-functions
11 create_empty_image_rootdir
13 # Create what will eventually be our root filesystem onto an overlay
16 eval $
(udevadm info
--export --query=env
--name=${LOOPDEV}p2
)
18 setup_basic_environment
20 # setup the testsuite service
21 cat >$initdir/etc
/systemd
/system
/testsuite.service
<<EOF
23 Description=Testsuite service
26 ExecStart=/bin/sh -x -c 'mount -o remount,rw /dev/sda1 && echo OK > /testok; systemctl poweroff'
31 cat >$initdir/etc
/systemd
/system
/-.mount
<<EOF
33 Before=local-fs.target
39 Options=errors=remount-ro,noatime
42 WantedBy=local-fs.target
46 cat >$initdir/etc
/systemd
/system
/systemd-remount-fs.service
<<EOF
48 DefaultDependencies=no
49 Conflicts=shutdown.target
50 After=systemd-fsck-root.service
51 Before=local-fs-pre.target local-fs.target shutdown.target
52 Wants=local-fs-pre.target
57 ExecStart=/bin/systemctl reload /
63 ln -s /etc
/systemd
/system
/-.mount
$initdir/etc
/systemd
/system
/root.mount
64 mkdir
-p $initdir/etc
/systemd
/system
/local-fs.target.wants
65 ln -s /etc
/systemd
/system
/-.mount
$initdir/etc
/systemd
/system
/local-fs.target.wants
/-.mount
67 mask_supporting_services