bedrocklinux / bedrocklinux-userland

This tracks development for the things such as scripts and (defaults for) config files for Bedrock Linux
https://bedrocklinux.org
GNU General Public License v2.0
603 stars 64 forks source link

cp: can't stat '/etc/group': No such file or directory #203

Open Defal7c opened 3 years ago

Defal7c commented 3 years ago

Hello, just installed bedrock and went directly to the tutorial after the reboot, while doing that I tested a lot of distros and around 10 mirrors, no result. I'm using Arch on a x86 machine Here is the log:

[defal7@brick ~]$ sudo brl fetch -n tut-alpine alpine [sudo] password for defal7: [ 1/15 ( 6%)] Determining name

paradigm commented 3 years ago

Do you have an /etc/group file? That's a standard expectation for most distros, and it's a bit worrying for it to be missing.

If it is missing, you might have a /etc/group- or similar file. These are backups of /etc/group. If so, you can probably copy it to /etc/group to get going again.

If, after restoring /etc/group, you get this error again, we can try to catch what's going by using Bedrock's etcfs filesystem to log changes to the /etc directory and catch what is removing /etc/group. The latest beta includes improvements to this logging functionality. You could update to that, then edit /bedrock/etc/bedrock.conf and go all the way to the bottom to the debug = line and append etcfs to it so it looks like debug = etcfs. If you then reboot, Bedrock will log /etc access to /bedrock/var/cache/etcfs-<stratum>.

Defal7c commented 3 years ago

Somehow, with around 3-4 reboots after the installation, it worked. Thanks btw keep up the good work!

paradigm commented 3 years ago

Roger wilco :)