From: Stefan Berger Subject: [PATCH] [XM] Fix documentation of 'cfgbootpolicy' command Date: Mon, 20 Nov 2006 16:39:42 -0500 Message-ID: <1164058782.8987.2.camel@gsal-3.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-dl3phc8T9lcSrjRXeRz0" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --=-dl3phc8T9lcSrjRXeRz0 Content-Type: text/plain Content-Transfer-Encoding: 7bit A small fix to the documentation to reflect recent changes to the 'cfgbootpolicy' command. Signed-off-by: Stefan Berger --=-dl3phc8T9lcSrjRXeRz0 Content-Disposition: attachment; filename=cfgbootpolicy_doc_fix.diff Content-Type: text/x-patch; name=cfgbootpolicy_doc_fix.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: root/xen-unstable.hg/tools/python/xen/xm/cfgbootpolicy.py =================================================================== --- root.orig/xen-unstable.hg/tools/python/xen/xm/cfgbootpolicy.py +++ root/xen-unstable.hg/tools/python/xen/xm/cfgbootpolicy.py @@ -37,7 +37,7 @@ def help(): return """ Adds a 'module' line to the Xen grub configuration file entry so that Xen boots with a specific access control policy. If - kernelversion is not given, then this script tries to determine + boot-title is not given, then this script tries to determine it by looking for a title starting with \"XEN\". If there are multiple entries matching, then it must be called with the unique beginning of the title's name.\n""" @@ -57,7 +57,7 @@ def strip_title(line): def insert_policy(boot_file, alt_boot_file, user_title, policy_name): """ inserts policy binary file as last line of the grub entry - matching the kernel_version version + matching the user_title or default title """ if user_title: #replace "(" by "\(" and ")" by "\)" for matching Index: root/xen-unstable.hg/tools/python/xen/xm/main.py =================================================================== --- root.orig/xen-unstable.hg/tools/python/xen/xm/main.py +++ root/xen-unstable.hg/tools/python/xen/xm/main.py @@ -148,7 +148,7 @@ SUBCOMMAND_HELP = { 'dry-run' : ('', 'Test if a domain can access its resources.'), 'resources' : ('', 'Show info for each labeled resource.'), - 'cfgbootpolicy' : (' [kernelversion]', + 'cfgbootpolicy' : (' [boot-title]', 'Add policy to boot configuration.'), 'dumppolicy' : ('', 'Print hypervisor ACM state information.'), 'loadpolicy' : ('', 'Load binary policy into hypervisor.'), --=-dl3phc8T9lcSrjRXeRz0 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-dl3phc8T9lcSrjRXeRz0--