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
|
# Hack around broken check for gcc
|
||||||
touch staging_dir/host/.prereq-build
|
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} \
|
make image SHELL=${runtimeShell} \
|
||||||
PROFILE="${profile}" \
|
PROFILE="${profile}" \
|
||||||
PACKAGES="${lib.concatStringsSep " " packages}" \
|
PACKAGES="${lib.concatStringsSep " " packages}" \
|
||||||
${lib.optionalString (files != null)
|
${lib.optionalString (files != null)
|
||||||
''FILES="${files}"''
|
''FILES=./files''
|
||||||
} \
|
} \
|
||||||
DISABLED_SERVICES="${lib.concatStringsSep " " disabledServices}" \
|
DISABLED_SERVICES="${lib.concatStringsSep " " disabledServices}" \
|
||||||
EXTRA_IMAGE_NAME="${extraImageName}"
|
EXTRA_IMAGE_NAME="${extraImageName}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user