You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
after replacing default config file, removing the MC causes the config file to disappear #782
Create a MC that replaces /etc/containers/policy.json. In the example below, this is the default contents of /etc/containers/policy.json run through jq -c and requoted:
To solve this generally, on an ostree-based system we need to restore the defaults from /usr/etc when the new MC stops modifying a file created by the old one. But we don't have /usr/etc on classic yum-based systems 😢 ...I guess we could instead copy the originals to .mcdorig when we update a file?
Hmm, is this a liability for future updates? Right now, we need to make sure that any new MC we generate does not stop modifying pre-existing files until this is fixed, it seems? (I.e. re-encoding the default file, rather than removing the file entry entirely). Which... seems like a very easy bit to trip up on 😬
Activity
cgwalters commentedon May 20, 2019
To solve this generally, on an ostree-based system we need to restore the defaults from
/usr/etcwhen the new MC stops modifying a file created by the old one. But we don't have/usr/etcon classic yum-based systems 😢 ...I guess we could instead copy the originals to.mcdorigwhen we update a file?jlebon commentedon May 22, 2019
Hmm, is this a liability for future updates? Right now, we need to make sure that any new MC we generate does not stop modifying pre-existing files until this is fixed, it seems? (I.e. re-encoding the default file, rather than removing the file entry entirely). Which... seems like a very easy bit to trip up on 😬
runcom commentedon May 28, 2019
I'm adding a test (and a fix for this following Colin's suggestion)
runcom commentedon May 28, 2019
PR here #797
pkg/daemon: fix deletion of stale files
pkg/daemon: fix deletion of stale files
pkg/daemon: fix deletion of stale files
pkg/daemon: fix deletion of stale files
pkg/daemon: fix deletion of stale files
pkg/daemon: fix deletion of stale files