From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: Question about Pakfire Update process Date: Tue, 24 Mar 2015 14:41:42 +0100 Message-ID: <1427204502.14172.171.camel@ipfire.org> In-Reply-To: <55104A02.30507@web.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4109809185959673653==" List-Id: --===============4109809185959673653== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi, On Mon, 2015-03-23 at 18:14 +0100, IT Superhack wrote: > Michael Tremer: > > Hi Timmothy, > > > > On Sun, 2015-03-22 at 10:43 +0100, IT Superhack wrote: > >> Hi everybody, > >> > >> I am currently working on bug #10767. > > > > thanks for looking into this. > > > >> During the last week, I wrote a shell script which compares the > >> running kernel to the installed kernel files (/boot/...). If they > >> are different, it recreates the files "boot.script" and > >> "boot.scr". Because of that, the user doesn't have to do this > >> after every kernel update. > > > > I do not really get what this script is supposed to do. In case of > > an update, the boot.script file will be overwritten any way. The > > version with the binary header can then be created at build time. > The installation manual > (http://wiki.ipfire.org/en/hardware/arm/wandboard/wandboardquad) says: > "Please note, after each kernel update the boot.script needs to be > adjusted and the convert_bootscript.sh or the containing command needs > to be executed." > Thereof, the steps of adjusting boot.script and running mkimage seem to > be necessary after each kernel update. They don't seem to be done by the > update mechanism itself at the moment. *What* needs to be adjusted? > > > > What are you exactly trying to solve here? > > > This is what I'm trying to provide: A script that can be executed by > Pakfire after an update. > It checks wether it runs on a wandboard and if it does, it updates the > boot.script stuff. *What* does it "update" with *what*? > >> However, the script needs to be triggered after a kernel update > >> took place. (Of course, I could copy it into /etc/cron.hourly/, > >> but in my opinion, this is not a good solution.) I guess it needs > >> to be triggered by Pakfire after the update process is done. > > > > Cron is never the solution. > > > >> Now comes my question: How do I do this? How can I tell Pakfire > >> to run a custom shell script after an update? > >> > >> I would be very greatful if you could mail me some hints. > >> > >> Best regards, Timmothy Wilson > >> _______________________________________________ Development > >> mailing list Development(a)lists.ipfire.org > >> http://lists.ipfire.org/mailman/listinfo/development > > EDIT: Sorry, I mixed up the destination addresses and send the mail to > Michael and not into the development list. > > _______________________________________________ > Development mailing list > Development(a)lists.ipfire.org > http://lists.ipfire.org/mailman/listinfo/development --===============4109809185959673653== Content-Type: application/pgp-signature Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="signature.asc" MIME-Version: 1.0 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcgdjIKCmlRSWNCQUFC Q2dBR0JRSlZFV21XQUFvSkVJQjU4UDl2a0FrSE1Pb1AvMWF1TE1SOG9CeGRqM3diUS9NNnNsZ3YK d0NaMGFLaFZmSjlTVHlEV2N3blp1djh4M2ladnVIdzMvNDhtcmN3NHBPeE1Lak8wMXYwSHloSE1q RnZBcExjMwpvWGxNYmU2UC9oNENsTEFLSkJheGtGVm81S0dGM3FlTEhiUitEdDd3QTBVYlczanhm YU96QnRkTTRsME5sWFBaCkZZbDBSemhiU1NsQXB2YkhoeExrMEJXc1g2UUdwZHBkQnI5d0NHR0hJ NnQvSEllN0hzTmdycjZscWRJdXhTcTgKQmdCRGEyR3IwRzFxQ3N0WHNvTjRPOE5pZGRrT0ljd3dF T1VjVWh5UmJNc1hhOUFybjY0bGlPU1M3dFhUTk5megpZT0xxaVp2eVNzdnphQmdEZVNxWDFPUWl5 MUNNT0ZxbHFMSmlHYTlhZTZkWkRWdTFHSStTNm16T1dOaDdNTzlWClBmOUVPY1BDYmhCU1FrN3Ru VkJNN1IvVmtDZlpNS1BmVUk1WWM1ZFBWYkhOelhweWJJVGw3dG9vRkpJQTQ1TDQKbzl3QWhwc1Rh cUd3RkVHV0RBZjhZVSs4SHIyc09STGdERWVUMGFkZmZuRmMvOGIxTnhMK0o2dWZGLzl6UnczdApv dk1ZUHl3cmc4b1ZTcHJvaVcvRjhCNExscXU3K2w5aS9jYzB3SGc2OEdMeG0ya25sSmxDR25hOUUx WHU5S0ZECmpCUG5sbUtyenp3Z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