fsquillace / junest

The lightweight Arch Linux based distro that runs, without root privileges, on top of any other Linux distro.
GNU General Public License v3.0
2.1k stars 110 forks source link

How to disable warning about config.gz #328

Closed akvadrako closed 1 year ago

akvadrako commented 1 year ago

I am using junest on latest Fedora Silverblue and every time I get this warning:

Could not understand if user namespace is enabled. No config.gz file found. Proceeding anyway...

I understand you want to check if user namespaces are supported, but wouldn't a better method be to check for the existence of /proc/$$/ns/user ?

fsquillace commented 1 year ago

Thanks for pointing this out. Some older linux kernel versions do not have that user file AFAIK. I am going to add this additional check to avoid printing the warning in your scenario.

fsquillace commented 1 year ago

Merged to master. Resolving. Thanks!