Quote:
|
In my case, this stray /.cache folder appeared after the last updates in slackware-current.
|
I don't have this problem.
What are you running on boot? |
Robby, it's due to rc.networkmanager, when is inactived the .config isn't created at boot ;)
I think it starts too early in the init, because when you start it under x, there is no problem |
By placing "echo -n "XXX: " ; ls -a /" statements in /etc/rc.{S,M} and drilling down I found that the /.cache file is created by the /usr/sbin/NetworkManager invocation done in /etc/rc.d/rc.networkmanager:
Code:
nm_start() :D |
Nice catch!
On my desktop, where I do not use NetworkManager, I do not see a /.cache directory. On my laptop, where I do use NetworkManager, I do see a /.cache directory. |
Yes, after installing wicd the /.cache directory is no longer created.
:D |
Quote:
I also don't see anywhere in NM source that uses any .cache directory :/ |
Humor me on this. Before the NM invocation stanza, add a "sleep 2" and then your echo/ls line and see what happens. I think it might be bluez doing it but it just takes a bit of time and NM gets started before that cache dir is created...
|
I think bluez is a false trail. The laptop where I observe the problem does not have /etc/rc.d/rc.bluetooth executable.
I added a call in /etc/rc.d/rc.S just before the stanza to configure ISA Plug and Play devices to a script to watch for the creation of a directory in / Code:
#!/bin/sh Code:
756 ? Ss 0:00 /sbin/mount.ntfs /dev/sda2 /xp-c -v -o ro,noexec,nosuid,nodev,umask=022,users |
Yes, i have one other install of current with openrc, and this install, doesn't have this cosmetic problem.
|
Hmmm ... an interesting, if harmless issue here ...
I've done this to myself from time to time by referencing an unitialized or a misspelled Directory Variable in a /bin/sh script. Example: Code:
THE_DIR= # THE_DIR is unitialized but not on purpose :) OTOH, if I run such code as root, I end up with an unintended directory in the fs root. Just sayin' :) Anyhow, like burdi01, I found no references to a .cache directory in any Current NetworkManager files and I am running wicd so I have no /.cache directory on my systems. But NetworkManager requires dbus (:) another Project with the LoveBucket name on it :)) and I do have a $HOME/.cache/dbus/ directory. I've not scanned the dbus code but I wonder if the XDG_DATA_HOME variable that 55020 found affects the location of the .cache/dbus/ directory ? But then, how would one set XDG_DATA_HOME during boot ??? -- kjh |
@rworkman:
Quote:
Also, just as allend, I do not have bluez enabled (actually it is not even installed). Anyway, I did as requested (and with an even longer sleep): Code:
nm_start() :D |
This is working for me to stop the creation of /.cache directory.
Code:
bash-4.4$ diff ./a/rc.networkmanager ./b/rc.networkmanager Quote:
|
Quote:
Quote:
|
All times are GMT -5. The time now is 09:10 AM. |