On a linux server, I have dedicated a large partition, identified as /dev/sdb1, to an encrypted filesystem. I'm using
losetup /dev/loop0 /dev/sdb1
cryptsetup -c aes -h sha512 create crypto /dev/loop0
mount /dev/mapper/crypto /var/crypto/db/
and a long passphrase to mount the partition and use it. On installation of a new kernel package, /usr/bin/os-prober is run. As far as I can see, it checks each partition for OS installations. Obviously, it fails the hard way on /dev/sdb1, where nothing but noise should live (unless you have the passphrase and make use of dmcrypt, of course).
According to my syslog, immediately after
running /usr/lib/os-probes/50mounted-tests on /dev/sdb1
a "Buffer I/O error on dev dm-0, ..." is logged, an aborted journal is detected, and the filesystem is remounted r/o. The log continues with a number of failure messages regarding the detection of a file system on /dev/sdb1, e.g.
Aug 17 17:12:59 mibi202 kernel: [1903146.947192] EXT4-fs (sdb1): VFS: Can't find ext4 filesystem
squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on sdb1
FAT-fs (sdb1): invalid media value (0xca)
Obviously, os-prober could not do its magic on the encrypted device and somehow interfered with its proper function.
Unmounting the encrypted filesystem, removing the dmcrypt device and the loop, and starting the stuff again in proper order gets me back to the file system.
Any hint on how to avoid os-prober causing a service interruption on the server would be welcome. Thanks.