I would suggest teaching parted_server (in partman-base) about a new command to tell whether the fs on a given partition is dirty, and making use of that in partman-basicfilesystems where it decides whether to automount things.
As far as os-prober goes, there was discussion about this recently upstream in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=417407; there was a suggestion here to "protect" block devices by using 'blockdev --setro', which ought to convince the kernel not to do anything at all to the contents of the block device for the duration. I think this ought to require resurrecting the port we used to have of blockdev to busybox, rather than creating a new blockdev-udeb. ** Bug watch added: Debian Bug tracker #417407 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=417407 ** Also affects: os-prober (Debian) via http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=417407 Importance: Unknown Status: Unknown -- Replaying journals of other OS's filesystems, by mounting them, is unsafe https://bugs.launchpad.net/bugs/41624 You received this bug notification because you are a member of Ubuntu Bugs, which is a direct subscriber. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs