sys-kernel/coreos-firmware: Disable savedconfig flag and file creation

The savedconfig feature reads and, if not set, generates a file under
/etc/portage/savedconfig/ to source a build configuration. We probably
don't want this and specially not on the final image, therefore,
disable reading and also don't write the file to the final image.
This commit is contained in:
Kai Lüke 2020-09-25 18:14:12 +02:00
parent 76f9afce09
commit c8d526dd01
2 changed files with 7 additions and 3 deletions

View File

@ -104,3 +104,6 @@ app-misc/jq oniguruma
# Disable sse2 from CPU_FLAGS_X86 to avoid config error around simd
net-misc/rsync -cpu_flags_x86_sse2
# Don't read the firmware config from /etc/portage/savedconfig/
sys-kernel/coreos-firmware -savedconfig

View File

@ -166,9 +166,10 @@ src_prepare() {
}
src_install() {
if use !savedconfig; then
save_config ${PN}.conf
fi
# Flatcar: Don't save the firmware config to /etc/portage/savedconfig/
# if use !savedconfig; then
# save_config ${PN}.conf
# fi
rm ${PN}.conf || die
insinto /lib/firmware/
doins -r *