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

libstore: Verify and repair path metadata on `nix-store --verify --check-contents' #2171

Closed
wants to merge 2 commits into from

Conversation

dezgeg
Copy link
Contributor

@dezgeg dezgeg commented May 21, 2018

Currently, if you somehow end up with store paths that contain an
invalid permission (i.e. not 444 or 555) or mtime (i.e. not 1),
figuring out the problem and fixing it is quite difficult. (See e.g.
NixOS/nixpkgs#32242).

Fortunately, this is quite simple to fix by calling
canonicalisePathMetaData() in --check-contents handling, just need to
add some prints to show when problems are getting repaired.

…eck-contents`

Currently, if you somehow end up with store paths that contain an
invalid permission (i.e. not 444 or 555) or mtime (i.e. not 1),
figuring out the problem and fixing it is quite difficult. (See e.g.
NixOS/nixpkgs#32242).

Fortunately, this is quite simple to fix by calling
canonicalisePathMetaData() in --check-contents handling, just need to
add some prints to show when problems are getting repaired.

Fixes NixOS#1760.
@teto
Copy link
Member

teto commented May 26, 2018

that's really cool. I have no idea why but it sometimes happens with iproute package that files have wrong permissions. My first attempt at nix-store --delete nuked my config, As a fallback I now mounted the store as rw and change the permissions manually whenever I need to. This PR would obviosuly be better.

@stale
Copy link

stale bot commented Feb 13, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the stale label Feb 13, 2021
@stale
Copy link

stale bot commented Apr 16, 2022

I closed this issue due to inactivity. → More info

@stale stale bot closed this Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants