-
-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(extra-files) add howto #440
Conversation
docs/cli.md
Outdated
@@ -36,8 +36,8 @@ Options: | |||
* --stop-after-disko | |||
exit after disko formatting, you can then proceed to install manually or some other way | |||
* --extra-files <path> | |||
path to a directory to copy into the root of the new nixos installation. | |||
Copied files will be owned by root. | |||
contents of local <path> are recursively copied and overwrites root (/) of the new NixOS installation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
contents of local <path> are recursively copied and overwrites root (/) of the new NixOS installation. | |
contents of local <path> are recursively copied to the root (/) of the new NixOS installation. Existing files are overwritten |
docs/howtos/extra-files.md
Outdated
When the files are extracted on the remote the copied data will be owned by | ||
root. | ||
|
||
### Soft links |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: I think the term "symlinks" / "symbolic links" has won and woudl use that here
docs/howtos/extra-files.md
Outdated
$ root=$(mktemp -d) | ||
$ sudo cp --verbose --archive --link --parents /etc/ssh/ssh_host_* ${root} | ||
$ cp --verbose --archive --link /persist ${root} # --parents not needed for a full path | ||
$ lsd --tree --long ${root} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe remove the lsd call and just post the output as an example layout in another source block? Using non-standard tools in a howto without explaining/installing them could be confusing?
Appreciate the feedback! Let me know if everything is addressed and I will squash. EDIT: nm there wasnt much to it, so just squashed. |
Thank you! |
Add a howto for
--extra-files
#283