Skip to content
Snippets Groups Projects
Commit a8efa34d authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

Fix permissions for /etc and other dirs after clean flash (#6039)


During the first OpenWrt boot after a clean flash (when the jffs2
partition is not yet initialized) tmpfs is used instead of the usual
jffs2 overlay filesystem.  If this tmpfs is mounted with default
options, all directories created there (/etc, /etc/config, other
subdirectories in /etc) get permissions 1777 by default, and these
permissions then persist in the created jffs2 at least until
subsequent sysupgrade.  Mounting tmpfs with mode=0755 fixes the
permission problem.

Signed-off-by: default avatarSergey Vlasov <vsu@altlinux.ru>

SVN-Revision: 23906
parent 7972cc4a
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment