blob: 3f499cdc8bf53b899bd3a7228308c3519f8f818b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
type ismounted > /dev/null 2>&1 || . /lib/dracut-lib.sh
if [ "${fstype}" = "virtiofs" ] || [ "${root%%:*}" = "virtiofs" ]; then
if ! load_fstype virtiofs; then
die "virtiofs is required but not available."
fi
mount -t virtiofs -o "$rflags" "${root#virtiofs:}" "$NEWROOT" 2>&1 | vinfo
if ! ismounted "$NEWROOT"; then
die "virtiofs: failed to mount root fs"
fi
info "virtiofs: root fs mounted (options: '${rflags}')"
[ -f "$NEWROOT"/forcefsck ] && rm -f -- "$NEWROOT"/forcefsck 2> /dev/null
[ -f "$NEWROOT"/.autofsck ] && rm -f -- "$NEWROOT"/.autofsck 2> /dev/null
fi
:
|