hadong has uploaded a new change for review. Change subject: init: Add support for use_strong_rng cmdline args ......................................................................
init: Add support for use_strong_rng cmdline args This patch adds support for configuring use_strong_rng in cmdline args: use_strong_rng=<bytes> This informations are sued to set use_strong_rng=<bytes> during an auto-installation. Change-Id: I1032e30bd7a8855cfccbb42daf5bf3cf97cf2147 Signed-off-by: hadong <[email protected]> --- M scripts/ovirt-auto-install.py 1 file changed, 5 insertions(+), 4 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/36/18636/1 diff --git a/scripts/ovirt-auto-install.py b/scripts/ovirt-auto-install.py index ed26580..0773548 100755 --- a/scripts/ovirt-auto-install.py +++ b/scripts/ovirt-auto-install.py @@ -27,6 +27,7 @@ from ovirt.node.utils.console import TransactionProgress from ovirt.node.utils import system from ovirt.node.utils import security +from ovirt.node.config import defaults import logging import sys @@ -79,10 +80,10 @@ def commit(self): if "OVIRT_KEYBOARD_LAYOUT" in OVIRT_VARS and \ not OVIRT_VARS["OVIRT_KEYBOARD_LAYOUT"] is "": - kbd = system.Keyboard() - kbd.set_layout(OVIRT_VARS["OVIRT_KEYBOARD_LAYOUT"]) - ovirt_store_config("/etc/vconsole.conf") - ovirt_store_config("/etc/sysconfig/keyboard") + model = defaults.Keyboard() + model.update(layout=OVIRT_VARS["OVIRT_KEYBOARD_LAYOUT"]) + tx = model.transaction() + tx() class ConfigureStrongRNG(Transaction.Element): -- To view, visit http://gerrit.ovirt.org/18636 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1032e30bd7a8855cfccbb42daf5bf3cf97cf2147 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-node Gerrit-Branch: master Gerrit-Owner: hadong <[email protected]> _______________________________________________ node-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/node-patches
