Skip to content
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

Add support for extra files #27

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

steve-daedilus
Copy link

Add support for extra files. Recommend a subfolder be created and then referenced with the -x, --extra-file option for simplicity.

Add support for extra files. Recommend a subfolder be created and then referenced with the -x, --extra-file option for simplicity.
@steve-daedilus
Copy link
Author

#25 resolution

@nsky1618
Copy link

nsky1618 commented Apr 9, 2022

Thanks a lot. It's OK

@krzee
Copy link

krzee commented May 2, 2022

This PR is working for me. maybe it should also touch the usage in the README

@steve-daedilus
Copy link
Author

I've updated README and will place anther request in for pull / merge.

@krzee
Copy link

krzee commented May 24, 2022

I see the updated README in this PR. thank you, I am nobody in this project but I approve this PR 👍

@Mammouth2727
Copy link

@steve-daedilus could you provide an example showing how to use the extra-files option? where do they end up? should I copy them back to /target using a late-command? I tried to add a directory and the files do not show up in the final iso.

@steve-daedilus
Copy link
Author

@steve-daedilus could you provide an example showing how to use the extra-files option? where do they end up? should I copy them back to /target using a late-command? I tried to add a directory and the files do not show up in the final iso.

The way I use this is to cd to the directory with the script in. Within that I have a "scripts" directory, and within that I have the files I want to include.

To include the files, I include the parameter line
-x scripts

The referenced folder "scripts" is copied recursively to the nocloud folder in the ISO.

I have a late-commands section in my user-data.yml to copy files to where they need to go on the deployment, such as:

cp /cdrom/nocloud/scripts/* /target/opt/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants