[PATCH] add command line option to override the platform that we are installing for passed onto anaconda to make ARM images where the compose hardware does not match the target hardware

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Dennis Gilmore <dennis@xxxxxxxx>
---
 src/sbin/livemedia-creator |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/sbin/livemedia-creator b/src/sbin/livemedia-creator
index 453343a..13d059e 100755
--- a/src/sbin/livemedia-creator
+++ b/src/sbin/livemedia-creator
@@ -554,6 +554,8 @@ if __name__ == '__main__':
                          help="Keep raw disk image after .iso creation" )
     parser.add_argument( "--no-virt", action="store_true",
                          help="Use Anaconda's image install instead of virt-install" )
+    parser.add_argument( "--platform",
+                         help="the platform to use when creating images for ARM" )
     parser.add_argument( "--proxy",
                          help="proxy URL to use for the install" )
     parser.add_argument( "--anaconda-arg", action="append", dest="anaconda_args",
@@ -740,6 +742,8 @@ if __name__ == '__main__':
                     anaconda_args += arg.split(" ", 1)
             if opts.proxy:
                 anaconda_args += [ "--proxy", opts.proxy ]
+            if opts.platform:
+                anaconda_args += [ "--targetplatform", opts.platform ]
 
             # Use anaconda's image install
             install_error = anaconda_install( disk_img, disk_size, opts.ks[0],
-- 
1.7.10.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux