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

Placeholder NAND archives can't be copied from fully read-only sources #30

Open
neobrain opened this issue Jan 2, 2025 · 0 comments
Open

Comments

@neobrain
Copy link
Member

neobrain commented Jan 2, 2025

NixOS apparently defaults to installing to read-only locations even for owners. This breaks std::filesystem::copy in main.cpp.

I'm not sure there is a way to continue using std::filesystem::copy when recursively copying read-only directories. We'll have to migrate to something else instead.

Steps to reproduce (from Mikage build folder):

  1. ninja install
  2. sudo chmod -R -w /usr/local/share/mikage/nand/title
  3. ./source/mikage sm3dl.cci --bootstrap_nand --enable_logging

Observed output:

[FRONTEND] [info] Attempting to open "sm3dl.cci" (create=false)
libc++abi: terminating due to uncaught exception of type std::__1::__fs::filesystem::filesystem_error: filesystem error: in create_directory: Permission denied ["/Users/myuser/.local/share/mikage/data/0004009b/00010402"] ["/usr/local/share/mikage/nand/title/0004009b/00010402"]
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