mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 10:27:00 +02:00
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:
parent
76f9afce09
commit
c8d526dd01
@ -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
|
||||
|
@ -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 *
|
||||
|
Loading…
Reference in New Issue
Block a user