site  contact  subhomenews

Fix top-level /.config and /.local at startup

November 23, 2022 — BarryK

In EasyOS 4.5.1 (and earlier), after bootup you will see top-level folders /.config and /.local, with folders and files inside them. This should not be happening; they should be created under /root

There is a misconfiguration somehow, HOME='/' when enter /etc/rc.d/rc.sysinit, whereas it should be HOME='/root'

Login has not yet happened when execute /etc/rc.d/rc.sysinit. At login, /etc/profile will run, as well as files in /etc/profile.d, which will set many variables, and as Easy logs in a the root user, it will set HOME='/root'. However, it is required to be set to "/root" before that, when /etc/rc.d/rc.sysinit runs.

A fix has been committed:

https://github.com/bkauler/woofq/commit/6ce576b2421ea78c43cab3c5f55bd5213244e4df

The fix has worked.   

Tags: easy