main/postmarketos-mkinitfs: remove cache and improve performance
The lddtree script uses the scanelf utility which has some security check that causes a slowdown of the operation, executing it without privileges it's really faster.
Thanks to the speed improvement we can remove the whole caching mechanism and this solves also the issue of the dependencies not hashed.
Comparison between running lddtree as root or as nobody:
as root: time lddtree -l $BINARIES_EXTRA
as nobody: time su nobody -s /bin/sh -c "lddtree -l $(echo $BINARIES_EXTRA)"
in native chroot:
- as root: 48s
- as nobody: 0.8s
in qemu armv7:
- as root: 1m 12s
- as nobody: 23s
Closes !1100 (closed)
Merge request reports
Activity
- Resolved by Administrator
added 1 commit
- 9967f9aa - main/postmarketos-mkinitfs: execute lddtree without privileges
By Daniele Debernardi on 2020-04-08T20:43:24
added initramfs type::feature labels
mentioned in commit 36f15b58
By Daniele Debernardi on 2020-04-09T08:35:40
mentioned in commit bd15afc2
By Daniele Debernardi on 2020-04-09T08:35:41
added 3 commits
-
e2ab2fcd - 1 commit from branch
master
- 36f15b58 - main/postmarketos-mkinitfs: remove initramfs-extra cache (!1133 (merged))
- bd15afc2 - main/postmarketos-mkinitfs: execute lddtree without privileges (!1133 (merged))
By Bart Ribbers on 2020-04-09T08:35:42
-
e2ab2fcd - 1 commit from branch
enabled an automatic merge when the pipeline for bd15afc2 succeeds
By Bart Ribbers on 2020-04-09T08:36:01
mentioned in merge request !1100 (closed)
By Daniele Debernardi on 2020-04-12T00:17:43