<div class="gmail_quote"><span style="color:rgb(0,0,0)">On Wed, Sep 5, 2012 at 6:40 PM, Frederick Grose <span dir="ltr"><<a href="mailto:fgrose@gmail.com" target="_blank">fgrose@gmail.com</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<span style="color:rgb(0,0,0)"><font><font face="trebuchet ms,sans-serif"><span style>This version of livecd-iso-to-disk is reworked to use the source root filesystem in a chroot by default, along with the livecd-iso-to-disk script embedded in the source.  A --nochroot as well as a --avoidsourcescript option are available for cases where the launching filesystem and/or installation script is called for.<br>


<br>One can load a Live USB by these steps:<br> 1. mounting the source.iso<br> 2. determine its loop device, /dev/loopN<br> 3. call /mountpoint/LiveOS/livecd-iso-to-disk /dev/loopN /dev/target<br><br>All 3 steps could be avoided by providing some appropriate autorun scripts for the iso, or including some standard install scripts that could be invoked by clicking on them in Nautilus.<br>


<br>By mounting the source.iso LiveOS filesystem in a chroot enviroment, the current version of software components, including the installation script, on the source can be used for installation.  (If syslinux-extlinux is not in the source, ext234,btrfs target devices will have to use the --nochroot option and a system with the proper bootloader.)  An --avoidsourcescript option is also added to allow installation with alternative scripts.<br>


<br>This new version of livecd-iso-to-disk prefers builtin functions, finds and offers to unmount mounted targets, and reorders some compatibility checks in order to bailout early, if needed.<br><br>If this passes further testing (the DVD and netinst installer paths are untested), I can submit incremental patches for these changes.<br>


<br>Link to the reworked livecd-iso-to-disk script,<br><a href="https://bugzilla.redhat.com/attachment.cgi?id=610112" target="_blank">https://bugzilla.redhat.com/attachment.cgi?id=610112</a><br><br>Filed on this ticket,<br>

<a href="https://bugzilla.redhat.com/show_bug.cgi?id=663986" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=663986</a><br>
</span></font></font><br><font><font face="trebuchet ms,sans-serif"><span style><br>Testing and comments would be appreciated.<br><br>            --Fred<br></span></font></font></span></blockquote><div><br>The script can be tested on an existing source.iso by invoking it with the --avoidsourcescript option, which will complete the installation using the launched script in the chroot instead of the the onboard version of livecd-iso-to-disk.<br>

<br>The script could also be copied to the /LiveOS/ directory in the device filesystem of an installed Live USB, and then called from the from the mount point for that device, such as, /run/media/liveuser/MyUSBname/LiveOS/livecd-iso-to-disk /dev/MyUSBnode /dev/target, where MyUSBname is the mount point directory name and MyUSBnode is the /dev filesystem node, such as, sdc1 or sdd1, etc.<br>

<br>             --Fred<br></div></div><br>