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

==> ERROR: Invalid CHROOTPATH64 defined in .config/clean-chroot-manager.conf #65

Closed
rpuntaie opened this issue May 8, 2020 · 6 comments

Comments

@rpuntaie
Copy link
Contributor

rpuntaie commented May 8, 2020

If using tmpfs, as you described in the man file, /scratch/.chroot64 it will be gone after a reboot.

Then ccm c returns an error, because the config file is still there.
One needs to remove the config file, which one maybe edited, to re-create the chroot folder via ccm c.

I think this should be handled by changing the fstab entry to

	tmpfs /scratch/.chroot64 tmpfs nodev,size=20G 0 0

Then this would be a doc issue (or just feedback).

@graysky2
Copy link
Owner

graysky2 commented May 8, 2020

I think the permissions on that would be root:root rather than youruser:yourgroup , no?

@rpuntaie
Copy link
Contributor Author

rpuntaie commented May 9, 2020

I was referring to the line in your man file:

tmpfs /scratch tmpfs nodev,size=20G 0 0

I just added the .chroot64 to avoid the error.

Regarding permission, on my fstab I made it user.
But the permission is not related to the error.
The error is issued based on [[ ! -d "$CHROOTPATH64" ]],
which is true after a boot if you have /scratch and not /scratch/.chroot64 in the fstab.

@graysky2
Copy link
Owner

graysky2 commented May 9, 2020

I agree that without something creating /scratch/.chroot64/ for you, you will get the error. My recommendation is to use a tmpfile.d entry as shown in the man page:
https://github.com/graysky2/clean-chroot-manager/blob/master/doc/clean-chroot-manager.1#L89-L94

That way, the user you define is the owner and you control the actual permissions (750 or 755 etc.).

@rpuntaie
Copy link
Contributor Author

rpuntaie commented May 9, 2020

Oh, I see. facade should have become my user name.
I copied without thinking. Thanks.

@rpuntaie rpuntaie closed this as completed May 9, 2020
@graysky2
Copy link
Owner

graysky2 commented May 9, 2020

Maybe I should switch that to foo or something more generic.

@rpuntaie
Copy link
Contributor Author

E.g. you_user_name_here.

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

2 participants