Alan Pevec
2009-Apr-08 20:00 UTC
[Ovirt-devel] [PATCH node] change working directory before reboot
to avoid "error retrieving current directory" in the upgrade logs
Signed-off-by: Alan Pevec <apevec at redhat.com>
---
scripts/ovirt-functions | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions
index a3991c0..018cd84 100755
--- a/scripts/ovirt-functions
+++ b/scripts/ovirt-functions
@@ -559,6 +559,7 @@ lvremove() {
# reboot wrapper
# cleanup before reboot
reboot() {
+ cd /
# setup new Root if update is prepared
if [ -e /dev/HostVG/RootUpdate ]; then
lvrename HostVG Root RootBackup
--
1.6.0.6
Darryl L. Pierce
2009-Apr-08 20:05 UTC
[Ovirt-devel] [PATCH node] change working directory before reboot
On Wed, Apr 08, 2009 at 10:00:49PM +0200, Alan Pevec wrote:> to avoid "error retrieving current directory" in the upgrade logs > > Signed-off-by: Alan Pevec <apevec at redhat.com> > --- > scripts/ovirt-functions | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions > index a3991c0..018cd84 100755 > --- a/scripts/ovirt-functions > +++ b/scripts/ovirt-functions > @@ -559,6 +559,7 @@ lvremove() { > # reboot wrapper > # cleanup before reboot > reboot() { > + cd / > # setup new Root if update is prepared > if [ -e /dev/HostVG/RootUpdate ]; then > lvrename HostVG Root RootBackup > -- > 1.6.0.6 > > _______________________________________________ > Ovirt-devel mailing list > Ovirt-devel at redhat.com > https://www.redhat.com/mailman/listinfo/ovirt-develACK. -- Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc. Virtual Machine Management - http://www.ovirt.org/ Is fearr Gaeilge bhriste n? B?arla cliste. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20090408/f611bff6/attachment.sig>