In order to run etckeeper on e.g. embedded systems which does not have perl, I've removed the last parts using perl. I have run this on my custom system and it works as expected for me.
Link to github commit: https://github.com/radhus/etckeeper/commit/d05837ed617bac0163a158ba1cfeca68994bc8f3
done; another patch updated this one to address my review and has been merged. --?Joey
Reviewing this patch, I noticed a bug in the first hunk. lsscripts currently limits the files it finds to those matching a regexp. IIRC, this is needed, amoung other things, to avoid .dpkg-old files being run.
Looking at the second hunk, I suspect that calling
id
twice per file is going to be significantly slower than the perl implementation.There also seems to be missing escaping of single quotes in filenames in the second hunk.