File: parse-virtiofs.sh

package info (click to toggle)
dracut 110-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,416 kB
  • sloc: sh: 24,901; ansic: 5,236; makefile: 346; perl: 186; python: 48; javascript: 19
file content (9 lines) | stat: -rwxr-xr-x 208 bytes parent folder | download | duplicates (3)
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