mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Ensure presence of CONFIG_PROTECT_MASK files
Right now, portage will treat absent files as protected. In order to get around this, we need to make sure they're there.
This commit is contained in:
parent
c8d79f0d00
commit
d690a88a2f
1 changed files with 3 additions and 0 deletions
|
@ -6157,6 +6157,9 @@ __gentoo_config_protection() {
|
|||
# cfg-update and then restart the bootstrapping script, so instead we allow
|
||||
# at this point to modify certain config files directly
|
||||
export CONFIG_PROTECT_MASK="${CONFIG_PROTECT_MASK:-} /etc/portage/package.accept_keywords /etc/portage/package.keywords /etc/portage/package.license /etc/portage/package.unmask /etc/portage/package.use"
|
||||
|
||||
# emerge currently won't write to files that aren't there, so we need to ensure their presence
|
||||
touch /etc/portage/package.accept_keywords /etc/portage/package.keywords /etc/portage/package.license /etc/portage/package.unmask /etc/portage/package.use
|
||||
}
|
||||
|
||||
__gentoo_pre_dep() {
|
||||
|
|
Loading…
Add table
Reference in a new issue