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 make delete-old and delete-old-libraries AND also needs mergemaster handling #5

Open
gustopn opened this issue Jul 22, 2018 · 3 comments
Assignees

Comments

@gustopn
Copy link
Owner

gustopn commented Jul 22, 2018

I ran into issues after upgrading because of old files that were still around.
Mainly it was the local_unbound renaming, however, this has to be taken care of.
Also mergemaster has to be ran somehow automatically.
But in a way that it does not remove group, master passwd and alike.

@gustopn
Copy link
Owner Author

gustopn commented Aug 4, 2018

Before doing mergemaster -iFU, it needs to backup all /etc/, best by rsync -aHAX into root dir backups (or somewhere where backups could go). If it does not want to use rsync (because that's a package that needs to be installed, it could also take TAR. However, then it gets harder to pick just one file by copying it over. That needs to be done by tar listing all files and then picking one to extract from the archive.
BTW: BATCH_DELETE_OLD_FILES does batch on delete-old and delete-old-libraries.

@gustopn gustopn self-assigned this Aug 4, 2018
@gustopn
Copy link
Owner Author

gustopn commented Aug 5, 2018

for jails it is not worth the time to run mergemaster interactively. It makes more sense to just overwrite it all with make distribution, let mergemaster -iFU remove all unneeded files and then roll back the files which we need, like master.passwd and ssh config and alike. Do not forget to run pwd_mkdb.

@gustopn
Copy link
Owner Author

gustopn commented Aug 5, 2018

One example:
for i injls -N name; do if [ -d /jail/$i ]; then export DESTDIR="/jail/$i"; make -DBATCH_DELETE_OLD_FILES delete-old; make -DBATCH_DELETE_OLD_FILES delete-old-libs; fi; done

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

No branches or pull requests

1 participant