From d690a88a2fc15b326209bdea3d9840846aa09ef5 Mon Sep 17 00:00:00 2001 From: JD Friedrikson Date: Thu, 1 Jun 2017 19:52:38 -0400 Subject: [PATCH] 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. --- bootstrap-salt.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index e098732..128fab6 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -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() {