Re: pkgbase and config file merges
- In reply to: Roger Marquis : "Re: pkgbase and config file merges"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 06 Mar 2024 17:24:18 UTC
On Wed, Mar 06, 2024 at 08:59:36AM -0800, Roger Marquis wrote: > Automatically overwriting files like passwd is clearly a problem. > Preferred solution would be a list, say [never_overwrite] and/or [ask > before overwriting] and/or [write diff to /var/db/pkgbase/...] in > /etc/defaults/pkgbase specifying existing files that should never be > modified without at least a dialog. > > This plus the cleanup of pkgsave files which should only be written to > /var/db/pkgbase/pkgsave/`date +%G%m%d%H%M` should address the blockers > to more widespread adoption of packagebase and, ideally, make it > mandatory or at least the default option in the next version of FreeBSD. > this can only happen in the bootstrap phase and not otherwise, in normal usage there is always a 3 way merge happening and if the 3 way merge fails there the original is preserved and a file.pkgnew is created with the new content. pkg should always be and remain unattended, once it enter a transaction so there is no plan to make it interactive. I don't understand what you are asking for about the .pkgsave files cleanup. Best regatrds, Bapt