Hello again, Martin Pitt [2016-03-07 9:27 +0100]: > So I'll still look into adding pre-reboot hooks, removing the drive > there, and writing the new udev rule into /run/ instead of /etc; this > should address the above issues.
The attached commit does that, and I tested it in a few iterations. WDYT? However, there's still one major issue left: Despite the "readonly=on", one can actually mount /dev/vdb1 in the VM and write files into it! This sounds like a QEMU bug (running 1:2.5+dfsg-5ubuntu4 here), but as long as that exists this is dangerous as this alters your pristine base images. I already tried to add the "readonly=on" to the "device_add", but that's just an "unknown property". Unfortunately this stuff isn't documented very well.. Thanks, Martin -- Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
signature.asc
Description: PGP signature