[lorax] livemedia-creator: Allow the boot.iso to be shared

Brian C. Lane bcl at redhat.com
Wed Jul 9 17:07:19 UTC 2014


This allows the boot.iso to be used by multiple instances of lmc (or
virt-install if they also set --disk shareable=on)
---
 src/sbin/livemedia-creator | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sbin/livemedia-creator b/src/sbin/livemedia-creator
index f055273..be34061 100755
--- a/src/sbin/livemedia-creator
+++ b/src/sbin/livemedia-creator
@@ -339,7 +339,7 @@ class VirtualInstall(object):
         args.append(disk_opts)
 
         if iso.liveos:
-            disk_opts = "path={0},device=cdrom".format(iso.iso_path)
+            disk_opts = "path={0},device=cdrom,readonly=on,shareable=on".format(iso.iso_path)
             args.append("--disk")
             args.append(disk_opts)
 
-- 
1.9.3



More information about the anaconda-patches mailing list