[node-patches] Change in ovirt-node[master]: Now function disable_firstboot will discard the info about t...

fabiand at fedoraproject.org fabiand at fedoraproject.org
Fri Aug 9 10:15:49 UTC 2013


Fabian Deutsch has posted comments on this change.

Change subject: Now function disable_firstboot will discard the info about the partition  size info. This patch is for fixing the problem.
......................................................................


Patch Set 1: Code-Review-1

(1 comment)

....................................................
File src/ovirtnode/ovirtfunctions.py
Line 353:             return False
Line 354:     return False
Line 355: 
Line 356: def disable_firstboot():
Line 357:     if os.path.ismount("/config"):
please call

    aug.save()

before the reload to prevent other values from getting lost (Can happen if aug.set was called before this function).
Line 358:         aug.load()
Line 359:         aug.set("/files/etc/default/ovirt/OVIRT_FIRSTBOOT", "0")
Line 360:         aug.set("/files/etc/default/ovirt/OVIRT_INSTALL", "0")
Line 361:         aug.set("/files/etc/default/ovirt/OVIRT_INIT", '""')


-- 
To view, visit http://gerrit.ovirt.org/17803
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I53392ee9e290d84b273fc18bdc1a4b04295907d9
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: hai bo <boh.ricky at gmail.com>
Gerrit-Reviewer: Fabian Deutsch <fabiand at fedoraproject.org>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes



More information about the node-patches mailing list