-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance build times disabling command-not-found during rootfs creation #6616
Conversation
490ba36
to
7725ac2
Compare
I agree, c-n-f is useful yes, but adds a lot of overhead. |
I think it makes sense to have it installed in rootfs cnf works like this: stand-alone: root user can always run While debootstrap and rootfs creation is non-interactive, cnf is basically useless at build-time: saving less than 20 seconds on native builds might be overkill and not useful for end-user, while saving 25-30 minutes on quemu builds makes all the sense of the world to me, especially since at first Everything is reasonably transparent to end user in my opinion, ponderating calculated impacts reported above regarding this:
Correct answer is 1, with a twist - first apt update + every subsequent apt update (which will be incremental since first run already created a db) -- still during build time every subesquent run make build times a lot longer and excruciating by adding more pain hope it helps :) |
71fb331
to
23ba9e2
Compare
8c9aad9
to
eed8c05
Compare
…ted extension into conditionals
…from display_alert
…_main_configuration
… interact with chroot
eed8c05
to
76010f5
Compare
Description
fix issue #6531 by disabling "command-not-found" apt hook during build-time (which takes ages under qemu) and re-enabling after succesfully creating rootfs
No impact for end user as command-not-found will create/update its internal db natively/transparently on SBC during first
sudo apt update
This shaves and additional ~2 minutes on a cached build with ORAS and CCACHE
How Has This Been Tested?
Checklist: