amluto / virtme

An easy way to virtualize the running system
GNU General Public License v2.0
330 stars 66 forks source link

virtme-init: use findmnt to detect /dev mount #29

Closed lmb closed 5 years ago

lmb commented 5 years ago

In my environment, /dev is available via the 9p root mount, and therefore virtme-init does not mount a fresh devtmpfs. This means that udevd later is unable to generate new entries for /dev/vport*. Using --script-sh or --script-exec therefore fails.

Instead, use findmnt to check whether /dev is automounted by the current kernel.

lmb commented 5 years ago

Would it be easier if I submitted this via a mailing list or similar?