summaryrefslogtreecommitdiffstats
path: root/test/TEST-04-FULL-SYSTEMD/test-init.sh
blob: eeec8a29d31161b44f764074dab0f53577dc6474 (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 > /failed

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

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

. /sbin/test-init.sh