Joey Boggs
2009-Sep-25 19:27 UTC
[Ovirt-devel] [PATCH node] readonly rootfs creates false positive entry for /boot in /proc/mounts
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
Joey Boggs
2009-Sep-29 20:54 UTC
[Ovirt-devel] Re: [PATCH node] readonly rootfs creates false positive entry for /boot in /proc/mounts
Joey Boggs wrote:> 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 >acked and passed autobuild, pushed to next