File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,9 @@ Options:
33
33
copy over existing /etc/ssh/ssh_host_* host keys to the installation
34
34
* --stop-after-disko
35
35
exit after disko formatting, you can then proceed to install manually or some other way
36
- * --extra-files <file...>
37
- files to copy into the new nixos installation
36
+ * --extra-files <path>
37
+ path to a directory to copy into the root of the new nixos installation.
38
+ Copied files will be owned by root.
38
39
* --disk-encryption-keys <remote_path> <local_path>
39
40
copy the contents of the file or pipe in local_path to remote_path in the installer environment,
40
41
after kexec but before installation. Can be repeated.
@@ -475,11 +476,8 @@ elif [[ ${build_on_remote-n} == "y" ]]; then
475
476
fi
476
477
477
478
if [[ -n ${extra_files-} ]]; then
478
- if [[ -d $extra_files ]]; then
479
- extra_files=" $extra_files /"
480
- fi
481
479
step Copying extra files
482
- tar -C " $extra_files " -cpf- . | ssh_ " ${maybe_sudo} tar -C /mnt -xf-"
480
+ tar -C " $extra_files " -cpf- . | ssh_ " ${maybe_sudo} tar -C /mnt -xf- --no-same-owner "
483
481
ssh_ " chmod 755 /mnt" # tar also changes permissions of /mnt
484
482
fi
485
483
You can’t perform that action at this time.
0 commit comments