summaryrefslogtreecommitdiffstats
path: root/test/TEST-04-FULL-SYSTEMD/test-init.sh
blob: c60c0ff0eaf570244f1b3e8962d6ebc4e483c67c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
: > /dev/watchdog

export PATH=/usr/sbin:/usr/bin:/sbin:/bin
command -v plymouth > /dev/null 2>&1 && plymouth --quit
exec > /dev/console 2>&1

systemctl --failed --no-legend --no-pager > /run/failed

ismounted() {
    findmnt "$1" > /dev/null 2>&1
}

if ! ismounted /usr; then
    echo "**************************FAILED**************************"
    echo "/usr not mounted!!"
    cat /proc/mounts >> /run/failed
    echo "**************************FAILED**************************"
fi

. /sbin/test-init.sh