<div dir="ltr"><div class="gmail_default" style="font-family:&#39;trebuchet ms&#39;,sans-serif;font-size:small;color:rgb(0,0,153)"><span style="font-family:arial;color:rgb(34,34,34)">On Fri, Apr 4, 2014 at 10:17 PM, Bruno Wolff III </span><span dir="ltr" style="font-family:arial;color:rgb(34,34,34)">&lt;<a href="mailto:bruno@wolff.to" target="_blank">bruno@wolff.to</a>&gt;</span><span style="font-family:arial;color:rgb(34,34,34)"> wrote:</span><br>

</div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="">

On Fri, Apr 04, 2014 at 21:13:44 -0700,<br>
  ToddAndMargo &lt;<a href="mailto:ToddAndMargo@zoho.com" target="_blank">ToddAndMargo@zoho.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
The current stick I am using is 16 GB.<br>
</blockquote>
<br></div>
You should be able to do a normal install with 16 GB. (Though you can use a lot more than that if you install enough packages.)<div class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
I use the Live USB as rescue disk at my customer sites (mostly<br>
to save Windows computers).  I had though of installing directly,<br>
but have been told that I can not expect that /dev/sda will<br>
always be the stick.<br>
</blockquote>
<br></div>
That shouldn&#39;t matter for booting. The device should be known by its UUID. (The install process will set that up as a kernel parameter. You shouldn&#39;t have to do anything special for that.)<br>
<br>
There might be some machines that will boot off the device with a FAT file system, but not with other file systems.</blockquote><div><br></div><div class="gmail_default" style="font-family:&#39;trebuchet ms&#39;,sans-serif;font-size:small;color:rgb(0,0,153)">

To keep everything you want in a compressed LiveOS filesystem, you can remix a custom Live CD. See,</div><div class="gmail_default"><font color="#000099" face="trebuchet ms, sans-serif"><a href="https://fedoraproject.org/wiki/How_to_create_and_use_a_Live_CD">https://fedoraproject.org/wiki/How_to_create_and_use_a_Live_CD</a></font><br>

</div><div class="gmail_default"><br></div><div class="gmail_default">To make remixing easier for an end user, I&#39;ve developed editliveos.py.  This Python script can be run from a directory containing the following files:</div>

<div class="gmail_default"><a href="https://git.sugarlabs.org/~FGrose/soas/sugar-clone-extensions/trees/master/editliveos">https://git.sugarlabs.org/~FGrose/soas/sugar-clone-extensions/trees/master/editliveos</a><br></div>

<div class="gmail_default"><br></div><div class="gmail_default">For example, I run this command line:</div><div class="gmail_default"><br></div><div class="gmail_default">sudo ./editliveos.py -n F20-Custom -t /var/tmp -y /var/cache/yum/ -S --builder fgrose --rootfs-size-gb 8 /path/to/Fedora-Live-Desktop-x86_64-20-1.iso<br>

</div><div class="gmail_default"><br></div><div class="gmail_default">(substituting the appropriate /path/to directories).</div><div class="gmail_default"><br></div><div class="gmail_default">which will enlarge the rootfs from 4 to 8 GiBytes. A shell in the new root filesystem (via chroot) is presented where you can yum update and yum install your desired software.</div>

<div class="gmail_default"><br></div><div class="gmail_default">NOTE: To take advantage of a newer kernel, you need to adapt these instructions:</div><div class="gmail_default"><a href="https://fedoraproject.org/wiki/How_to_create_and_use_Live_USB#Kernel_updates">https://fedoraproject.org/wiki/How_to_create_and_use_Live_USB#Kernel_updates</a></div>

<div class="gmail_default">with commands such as,</div><div class="gmail_default"><br></div><div class="gmail_default">BEFORE running yum update:</div><div class="gmail_default"><br></div><div class="gmail_default">    sed -i &#39;s/^hostonly=&quot;yes&quot;/hostonly=&quot;no&quot;/&#39; /usr/lib/dracut/dracut.conf.d/01-dist.conf</div>

<div class="gmail_default">    echo &#39;add_dracutmodules+=&quot; dmsquash-live &quot;</div><div class="gmail_default">    compress=&quot;xz&quot;&#39; &gt;&gt; /usr/lib/dracut/dracut.conf.d/01-dist.conf</div><div class="gmail_default">

<br></div><div class="gmail_default">Following yum update:</div><div class="gmail_default">    </div><div class="gmail_default">    yum remove kernel-3.11.10-301.fc20</div></div></div><div class="gmail_extra"><div class="gmail_quote">

<div class="gmail_default"><br></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div class="gmail_default"><div class="gmail_default">    new=3.13.8-200.fc20.x86_64</div><div class="gmail_default">    bootpath=mnt/live/isolinux</div>

<div class="gmail_default">    mv -f boot/vmlinuz-$new ${bootpath}/vmlinuz0</div><div class="gmail_default">    mv -f boot/initramfs-${new}.img ${bootpath}/initrd0.img</div><div class="gmail_default">    bootpath=run/initramfs/live/syslinux</div>

<div class="gmail_default"><br></div><div class="gmail_default">    ln -fs -T ../${bootpath}/vmlinuz0 boot/vmlinuz-$new</div><div class="gmail_default">    ln -fs -T ../${bootpath}/initrd0.img boot/initramfs-${new}.img</div>

<div class="gmail_default"><br></div><div class="gmail_default">which should be run from the chroot shell.</div><div><br></div></div><div class="gmail_default">On exiting the shell, the script continues to build an installable .iso file of your custom image.<br>

</div><div class="gmail_default"><br></div><div class="gmail_default">Once you have installed your custom LiveOS image, you can maintain it with new updates or software installations by running the editliveos.py script against the attached Live USB device using this command line, for example:</div>

<div class="gmail_default"><br></div><div class="gmail_default">sudo ./editliveos.py -n F20-Custom -t /var/tmp -y /var/cache/yum/ -S --builder fgrose  /path/to/F20-Custom-mountpoint(or path/to/dev/node)<br></div><div class="gmail_default">

<br></div><div class="gmail_default">(substituting the appropriate /path/to/mountpoint directories or /dev/node).</div><div class="gmail_default"><br></div><div class="gmail_default">The script will merge the overlay file and any updates from the chroot shell into a new SquashFS for your Live USB, and build an updated install .iso file.</div>

<div class="gmail_default"><br></div><div class="gmail_default">If there is a kernel update, the above-noted kernel move and link commands are needed with the appropriate kernel version identifiers.</div><div class="gmail_default">

IN ADDITION, the new kernel and initrd0.img needs to be moved to the /syslinux directory on the Live USB device.</div><div class="gmail_default"><br></div><div class="gmail_default">From a separate shell instance (because the chroot shell hides the host filesystem),</div>

<div class="gmail_default"><div class="gmail_default"><br></div><div class="gmail_default">    sudo cp /var/tmp/editliveos-XXXXXX/iso/isolinux/vmlinuz0    /path/to/mountpoint/syslinux/<br></div><div>    sudo cp /var/tmp/editliveos-XXXXXX/iso/isolinux/initrd0.img /path/to/mountpoint/syslinux/<br>

</div><div><br></div></div><div class="gmail_default"><div class="gmail_default">(substituting the appropriate temporary build and /path/to/mountpoint directories).<br></div><div class="gmail_default"><br></div><div class="gmail_default">

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