On Thu, Apr 14, 2011 at 12:07 PM, Frederick Grose <span dir="ltr"><<a href="mailto:fgrose@gmail.com">fgrose@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<span style="font-family: courier new,monospace;">The full script is available at<br><a href="https://bugzilla.redhat.com/show_bug.cgi?id=448030#c41" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=448030#c41</a><br>
<br>[Patch 2/5]</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Author: Frederick Grose <<a href="mailto:fgrose@sugarlabs.org" target="_blank">fgrose@sugarlabs.org</a>></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Date: Thu Apr 14 09:48:41 2011 -0400</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> Support refreshing of attached LiveOS devices.</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> Provide a new feature to refresh an attached LiveOS source image with a</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> renewed rootfs and freshed overlay and, optionally, skip building a new</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> .iso file.</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> Updated base_on() to support selinux contexts, provide a liveos_mount()</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> function, new functions to check disc space for building and refreshing</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> (with an extra space option to test or adjust staging space). Provide</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> an option to bypass the break to shell or script to permit uninterrupted</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> processing. Include the kernel architecture of the source in the .iso</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> image name, support F15-style rd.luks=0 in the boot configuration</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> adjustment, and provide updated usage statements.</span><br></blockquote><div><br> <font color="#000099"><font size="2"><font face="trebuchet ms,sans-serif"><font face="courier new,monospace"><font color="#000000">Unfortunately, the recent (09 April 2011, on my image) rsync update from 3.0.7-3.fc14 to 3.0.8-1.fc14 has broken the behavior for this application<br>
such that symlinks do not get the right SELinux context. For example,<br>/lib/ld-linux.so.2 is unconfined_u:object_r:file_t:s0 instead of<br>system_u:object_r:lib_t:s0<br><br>This results in a failed boot of a refreshed image or newly installed image.<br>
<br>A workaround, for now, is to interrupt the boot and insert selinux=0 with the<br>boot parameters. (An unmodified followup boot, will trigger a filesystem<br>relabel, and things are then back in order.)<br><br> --Fred <br>
</font></font></font></font></font><br></div></div>