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
main gitignore ignoring var directory in skel #792
Comments
Yes, this is correct. Can you please let me know for which purpose you need a |
In this Git repo usr/share/rear/skel/default/var contains the directories empty,lib,lock,log,run,tmp then some sub-directories on top of that. Because of the "var" exclude these directories are not committed to git unless they are forced. Then because they never get committed to git they then don't end up in rpm packages. Finally, those folders never get created on the rescue ISO. I'm only running into this because I have to download the zip folder and then create a git repo locally. These folder are already in the git repository here so if you do a proper git pull you wouldn't run into this issue. For example /var/run was not being created on the rescue ISO which then resulted in the initramfs scripts failing (iirc). |
I see. Maybe we change the gitignore entry from |
@thefrenchone Could you test this and tell us the difference? |
Changing the gitignore to have I don't really understand the justification for that line. |
As @gdha wrote already: If you run ReaR from a checkout it will create a var dir there. |
The main .gitignore file has the line "var". This appears to exclude the var directory within the usr/share/rear/skel/default directory from being committed in Git. When making rpm packages the usr/share/rear/skel/default/var directory was being excluded which would then exclude those directories from being created on the rescue ISO.
These directories missing was causing problems. Is there a justification for having the "var" exclude in the .gitignore file?
The text was updated successfully, but these errors were encountered: