[node-patches] Change in ovirt-node[master]: install.py: determine the kernel using uname -r

fabiand at redhat.com fabiand at redhat.com
Mon May 2 15:19:13 UTC 2016


Fabian Deutsch has posted comments on this change.

Change subject: install.py: determine the kernel using uname -r
......................................................................


Patch Set 1: Code-Review-1

(1 comment)

https://gerrit.ovirt.org/#/c/56831/1/src/ovirtnode/install.py
File src/ovirtnode/install.py:

Line 742: 
Line 743:             for path in ["etc", "dev", "proc", "sys", "tmp", "run", "var/tmp"]:
Line 744:                 mnts += [rbind(path)]
Line 745: 
Line 746:             upd_kver = str(_functions.passthrough("uname -r")).strip()
> Correction: This should work.
Correction: This will probably fail in the engine upgrade flow.

Why? Because in the engine upgrade flow, the running kernel is not the kernel in the dir.

We can probably solve this by:

    upd_kver = sorted(upd_kver.splitlines()).pop()

This will return the last kernel, which shoul dbe sufficient.
Line 747: 
Line 748:             # Update initramfs to pickup multipath wwids
Line 749:             # Let /boot point to the filesystem on the update candidate partition
Line 750:             builder = _system.Initramfs(dracut_chroot=updfs, boot_source=isomnt)


-- 
To view, visit https://gerrit.ovirt.org/56831
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I7787a9e3e6bc0b6c5ca7a257f8668a599357cd79
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <dougsland at redhat.com>
Gerrit-Reviewer: Fabian Deutsch <fabiand at redhat.com>
Gerrit-Reviewer: Ryan Barry <rbarry at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>
Gerrit-HasComments: Yes



More information about the node-patches mailing list