overlay coreos/config: Use newins with stdin for pkgcheck.conf

Co-authored-by: James Le Cuirot <jlecuirot@microsoft.com>
This commit is contained in:
Krzesimir Nowak 2024-09-04 16:09:16 +02:00 committed by GitHub
parent fa404f874e
commit e99bbf87a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,8 +1,8 @@
cros_post_src_install_create_default_config() { cros_post_src_install_create_default_config() {
dodir /etc/pkgcheck insinto /etc/pkgcheck
# these must be indented with tabs, bash only strips leading # these must be indented with tabs, bash only strips leading
# tabs with "<<-", leading spaces won't do. # tabs with "<<-", leading spaces won't do.
cat <<- EOF >"${ED}/etc/pkgcheck/pkgcheck.conf" || die newins - pkgcheck.conf <<-EOF
[DEFAULT] [DEFAULT]
keywords = -NonexistentDeps,-NonsolvableDepsInDev,-NonsolvableDepsInExp,-NonsolvableDepsInStable keywords = -NonexistentDeps,-NonsolvableDepsInDev,-NonsolvableDepsInExp,-NonsolvableDepsInStable
EOF EOF