On Sun, Dec 4, 2016 at 8:40 AM, Simon Thelen <gentoo-u...@c-14.de> wrote: > On 16-12-04 at 14:18, Andrew Lowe wrote: >> Hi all, >> I'm still getting the warning during boot about metalog using runscript >> during the boot process. I decided to track things down and see what was >> going on. My first stop was bugs.gentoo.org where there is this one: >> >> https://bugs.gentoo.org/show_bug.cgi?id=581926 >> >> Upon reading this, I would have thought that the ebuild had been >> updated with the supplied patch by the developers. I looked at the >> ebuild on my machine and it still is the "older" one. >> Packages.gentoo.org has the same ebuild as me. >> >> Has something just fallen through the cracks and things should have >> been "officially" updated or do I need to apply this patch myself? > The patch was applied to the initscript, but the ebuild was not > revbumped. You'll have to reinstall the package to get the new > initscript. You can rebuild all packages that use /sbin/runscript with: > `emerge --oneshot -av $(grep -l '/sbin/runscript' /etc/init.d/*)' > This was mentioned in a newsitem draft on gentoo-dev, but as far as I > can tell that newsitem was never published. > > -- > Simon Thelen >
I ended up writing an ed(1) script below to edit the init scripts affected: sed ' /convert/!d s:^[^/]*:: s: .*:: ' /var/log/rc.log | sort -u | while read file do echo e $file echo w $HOME/tmp/`basename $file`.runscript echo g/runscript/s//openrc-run/ echo w done | ed - Running the script above without piping it through to ed first prints the editing commands that would be run without actually running them. The script below runs the diff on the original files that have been backed up by the script above and the ones just been edited. ls $HOME/tmp/*.runscript | sed ' s/^/diff -u / h s:.*/\(.*\)\..*:/etc/init.d/\1: H g y/\n/ / ' | sh