[Ovirt-devel] [PATCH node] readonly rootfs creates false positive entry for /boot in /proc/mounts
Joey Boggs
jboggs at redhat.com
Fri Sep 25 19:27:26 UTC 2009
When trying to install the node /boot shows up in /proc/mounts due to the tmpfs entry. Switching it to /etc/mtab to validate if /boot is actually mounted
---
scripts/ovirt-functions | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions
index 98e88e7..e660cd7 100644
--- a/scripts/ovirt-functions
+++ b/scripts/ovirt-functions
@@ -263,7 +263,7 @@ mount_live() {
# mount boot partition
# boot loader + kernel + initrd
mount_boot() {
- if grep -q " /boot " /proc/mounts; then
+ if grep -q " /boot " /etc/mtab; then
return 0
fi
mkdir -p /boot
--
1.6.2.5
More information about the ovirt-devel
mailing list