builder: copy files to avoid making etc read-only
This caused lines like this to appear in the logs: .../sed: couldn't open temporary file .../etc/sed6fJsn9: Permission denied These errors caused some changes to /etc/group to be missed.
This commit is contained in:
parent
f682ef9c0f
commit
051b9df050
|
@ -73,11 +73,15 @@ stdenv.mkDerivation {
|
|||
# Hack around broken check for gcc
|
||||
touch staging_dir/host/.prereq-build
|
||||
''}
|
||||
${lib.optionalString (files != null)
|
||||
# copy files to avoid making etc read-only
|
||||
"cp -r --no-preserve=all ${files} files"
|
||||
}
|
||||
make image SHELL=${runtimeShell} \
|
||||
PROFILE="${profile}" \
|
||||
PACKAGES="${lib.concatStringsSep " " packages}" \
|
||||
${lib.optionalString (files != null)
|
||||
''FILES="${files}"''
|
||||
''FILES=./files''
|
||||
} \
|
||||
DISABLED_SERVICES="${lib.concatStringsSep " " disabledServices}" \
|
||||
EXTRA_IMAGE_NAME="${extraImageName}"
|
||||
|
|
Loading…
Reference in New Issue