X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=5a250405cff26fd958822d875bd3433bb3e8592d;hp=23eee821d1288d2b58c9dfe2d0b05e40cd8c5fa7;hb=1777b4d7e1fa23d4fc03866c9b75dc73df60733b;hpb=78d3706dacb929107532e904f5dbb6427d8b0bc0 diff --git a/autoconfig.functions b/autoconfig.functions index 23eee82..5a25040 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -1512,6 +1512,17 @@ else fi fi DCSDEVICE=$(blkid -t LABEL=$GRMLCFG | head -1 | awk -F: '{print $1}') + + modprobe 9p 2>/dev/null || true + if [ -z "$DCSDEVICE" ] && grep -q 9p /proc/filesystems ; then + if grep -q "$GRMLCFG" /sys/bus/virtio/devices/*/mount_tag 2>/dev/null ; then + einfo "Found 9p-virtio fs with mount_tag $GRMLCFG" + DCSDEVICE="$GRMLCFG" + MOUNTOPTIONS="ro,trans=virtio" + DCSFS="9p" + fi + fi + if [ -n "$DCSDEVICE" ]; then DCSMP="/mnt/grmlcfg" fi