summaryrefslogtreecommitdiffstats
path: root/modules.d/95virtiofs/parse-virtiofs.sh
blob: 760e41385b84d15bde824e96bb7c583ff5a5c49e (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
# Accepted formats:
# 	rootfstype=virtiofs root=<tag>
# 	root=virtiofs:<tag>

if [ "${fstype}" = "virtiofs" -o "${root%%:*}" = "virtiofs" ]; then
    # shellcheck disable=SC2034
    rootok=1
fi