From 5e677160cd1a8f14059c21d4b38d6ed7fdb65087 Mon Sep 17 00:00:00 2001 From: "d.marlin" Date: Wed, 15 Aug 2012 12:08:24 -0500 Subject: [PATCH] Add a command line option to override the ARM platform. Passed on to anaconda to make ARM images where the compose hardware does not match the target hardware. Signed-off-by: Brian C. Lane --- src/sbin/livemedia-creator | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sbin/livemedia-creator b/src/sbin/livemedia-creator index 4a37b590..e781b8ec 100755 --- a/src/sbin/livemedia-creator +++ b/src/sbin/livemedia-creator @@ -577,6 +577,9 @@ if __name__ == '__main__': parser.add_argument( "--anaconda-arg", action="append", dest="anaconda_args", help="Additional argument to pass to anaconda (no-virt " "mode). Pass once for each argument" ) + parser.add_argument( "--armplatform", + help="the platform to use when creating images for ARM, " + "i.e., highbank, mvebu, omap, tegra, etc." ) parser.add_argument( "--logfile", default="./livemedia.log", type=os.path.abspath, @@ -742,6 +745,8 @@ if __name__ == '__main__': anaconda_args += arg.split(" ", 1) if opts.proxy: anaconda_args += [ "--proxy", opts.proxy ] + if opts.armplatform: + anaconda_args += [ "--armplatform", opts.armplatform ] # Use anaconda's image install install_error = anaconda_install( disk_img, disk_size, opts.ks[0],