Joey Boggs
2009-Sep-25  19:35 UTC
[Ovirt-devel] [PATCH] readonly rootfs creates false positive entry for /live in /proc/mounts
---
 scripts/ovirt-functions |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions
index e660cd7..fc43343 100644
--- a/scripts/ovirt-functions
+++ b/scripts/ovirt-functions
@@ -244,7 +244,7 @@ ptr() {
 # PXE /dev/loop0 (loopback ISO)
 # not available when booted from local disk installation
 mount_live() {
-    if grep -q " /live " /proc/mounts; then
+    if grep -q " /live " /etc/mtab; then
         return 0
     fi
     local live_dev=/dev/live
-- 
1.6.2.5
Joey Boggs
2009-Sep-29  20:54 UTC
[Ovirt-devel] Re: [PATCH] readonly rootfs creates false positive entry for /live in /proc/mounts
Joey Boggs wrote:> --- > scripts/ovirt-functions | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions > index e660cd7..fc43343 100644 > --- a/scripts/ovirt-functions > +++ b/scripts/ovirt-functions > @@ -244,7 +244,7 @@ ptr() { > # PXE /dev/loop0 (loopback ISO) > # not available when booted from local disk installation > mount_live() { > - if grep -q " /live " /proc/mounts; then > + if grep -q " /live " /etc/mtab; then > return 0 > fi > local live_dev=/dev/live >acked and passed autobuild, pushed to next