<br><br><div class="gmail_quote">On Wed, Jun 16, 2010 at 6:42 PM, Richard Hughes <span dir="ltr">&lt;<a href="mailto:hughsient@gmail.com">hughsient@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On 15 June 2010 12:15, Huzaifa Sidhpurwala<br>
<div class="im">&lt;<a href="mailto:sidhpurwala.huzaifa@gmail.com">sidhpurwala.huzaifa@gmail.com</a>&gt; wrote:<br>
&gt; I have been using packagekit for some time now and it an amazing piece of<br>
&gt; software. Kudos to everyone working on this.<br>
<br>
</div>Blush. :-)<br>
<div class="im"><br>
&gt; There is one feature which i think would make updating desktops much more<br>
&gt; easier and safer, that would be<br>
&gt; ability to install software on reboot, so that existing applications are not<br>
&gt; disturbed. So here is my suggestion:<br>
<br>
</div>A few people have asked me for related functionality for other<br>
corporate desktop products, so it&#39;s probably a good idea we include<br>
something like this upstream rather than let people hack other stuff<br>
on top.<br>
<div class="im"><br>
&gt; 1. PackageKit downloads the updates silently in a cache folder. This can be<br>
&gt; toggled on or off by root or<br>
&gt;     users (depending on policykit)<br>
<br>
</div>Sure, we can do that now with a tiny bit of code. Adding a bit of code<br>
to PkPackageSack could turn it from a 10 line chunk of code to a 1<br>
line chuck of code, and possibly a good idea.<br>
<div class="im"><br>
&gt; 2. On reboot, just before the gdm window, it opens a dialog , asking if the<br>
&gt; user, if he wants to install those updates. If the user<br>
&gt;     agrees the updates are installed , if not optionally it should be able<br>
&gt; to mail the admin of or system that it failed etc.<br>
<br>
</div>This would be done pre-gdm-login? Pre-X? Post-authenticate-in-session?<br>
<div class="im"><br></div></blockquote><div>I suggest pre-gdm login, pre-auth<br>Similar to what adding a line to rc.local would do <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">
&gt; This basically has many advantages:<br>
&gt; 1. Applications sp ones based on gecko get mangled, when they are updates<br>
&gt; and behave strangely. The best way to update<br>
&gt; then is to close them update and open them, which would mean loosing all<br>
&gt; work.<br>
<br>
</div>Right.<br>
<div class="im"><br>
&gt; 2. The above enables corporate desktop updates in a more easier and<br>
&gt; controlled way.<br>
<br>
</div>Sure, which other people have requested. So, deliverable for this functionality:<br>
<br>
* Function added to PkPackageSack to download all packages to a directory<br>
* Path added to the config file for the boot-time-updates<br>
* Command added to pkcon, update-at-next-boot<br>
* Command added to pkcon, install-boot-updates<br>
* A directory path for the cache, /usr/cache/PackageKit/updates (?)<br>
<br>
Questions:<br>
<br>
1. Do we delete the files in the boot-time cache after they are updated?<br></blockquote><div>Yes, once updated, the rpms should have no more use and should be deleted to free up space. <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

2. Do we use GNOME PackageKit to do the integration bits in gdm, or<br>
rely on a pre-X environment in the init?<br></blockquote><div>Interesting question. <br>Doing it in pre-X would be pretty simple in my opinion, perhaps create an init script which would toggle it off or on.<br>What are the advantages of doing it in gdm?<br>
 <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
3. Do we want to install files at boot time also? If so we need some<br>
sort of manifest.<br>
<br></blockquote><div>boot time as in ? <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Richard.<br>
___</blockquote><div>Thanks a lot for looking into this and let me know if you need any help in writing/patching the code too.<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
____________________________________________<br>
PackageKit mailing list<br>
<a href="mailto:PackageKit@lists.freedesktop.org">PackageKit@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/packagekit" target="_blank">http://lists.freedesktop.org/mailman/listinfo/packagekit</a><br>
</blockquote></div><br>