Hi edbarx,
Sorry but, since "patch" can be used in different ways, and especially since you've said
Quote:
upgrade my linux-image (ie vmlinuz-*)
|
but didn't appear to specify the exact nature of the workaround, I'm not entirely clear what procedure you expect to follow.
If by "upgrade" you mean replace the vmlinuz-* file, then you would usually need to re-start the kernel in some way, after the "patch", before the patch would have any effect. If that's what you intended, that sounds like a clever idea to automate the patch process. But, I suspect you probably would not want to replace the file containing the running kernel as such, instead you'd want to provide a different kernel file to run, after a re-start. Yet handling that with an init-script, you'd probably want to be very sure that the init-script did the "patch", only once after the first re-start of the kernel, in response to an upgrade to the major version of GNU/Linux. Otherwise you could create a so called "infinite loop" of kernel re-starts.
If instead, you are are talking about changing values in kernel memory for a kernel that's already running, without re-starting the kernel after the changes, you'd need to be very sure that you were changing values that either didn't need to effectively be copied to somewhere else in kernel memory, or hadn't already been copied, and also could be accessed safely at that exact moment.