Bug#556739: os-prober: Mounts and reads logical volumes that are already mounted in a virtual machine
Package: os-prober
Version: 1.35
Severity: important
Hi,
I have a logical volume here that acts as the / filesystem of a kvm virtual machine running lenny.
When I upgraded my kernel today, I noticed that os-prober (called from update-grub) does mount this
volume trying to find an OS on it, without caring about the fact that this volume is already mounted
in the virtual machine. The kernel then complains in dmesg that the filesystem is not clean/corrupt/etc,
and I guess that under certain circumstances this could cause filesystem corruption and data loss.
It would be wiser if os-prober could check the flags of the logical volumes before mounting them.
"lvs" here shows that this volume is open, so this is a hint that you could use to determine if
the volume should be checked or not.
Regards,
George
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (101, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.30-2-amd64 (SMP w/3 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages os-prober depends on:
ii libc6 2.10.1-7 GNU C Library: Shared libraries
os-prober recommends no packages.
os-prober suggests no packages.
-- no debconf information
Reply to: