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

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