[PATCH lorax/master] Add a command line option to override the ARM platform.

d.marlin dmarlin at redhat.com
Wed Aug 15 17:08:24 UTC 2012


From: "d.marlin" <dmarlin at redhat.com>

Passed on to anaconda to make ARM images where the compose hardware
does not match the target hardware.

This patch from Dennis Gilmore was rebased to current lorax master
and the option name changed to match the option in Anaconda.

I have applied this to lorax-17.26 and successfully tested it using
livemedia-creator.

Signed-off-by: David A. Marlin <dmarlin at redhat.com>
---
 src/sbin/livemedia-creator |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/sbin/livemedia-creator b/src/sbin/livemedia-creator
index 4a37b59..e781b8e 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],
-- 
1.7.10.2



More information about the anaconda-patches mailing list