mirror of
https://github.com/troglobit/finit.git
synced 2026-10-28 12:30:44 +00:00
bootmisc: Handle _PATH_VARDB inconsistency gracefully
Some systems use /var/db while others use /var/lib/misc, we need to support both and cannot rely on _PATH_VARDB, since it too might not be set properly. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
bb4578292f
commit
3fd45eac7c
1 file changed
+2
-1
+2
-1
@@ -106,9 +106,10 @@ static void setup(void *arg)
|
|||||||
_d("Setting up FHS structure in /var ...");
|
_d("Setting up FHS structure in /var ...");
|
||||||
umask(0);
|
umask(0);
|
||||||
makedir("/var/cache", 0755);
|
makedir("/var/cache", 0755);
|
||||||
|
makedir("/var/db", 0755); /* _PATH_VARDB on some systems */
|
||||||
makedir("/var/games", 0755);
|
makedir("/var/games", 0755);
|
||||||
makedir("/var/lib", 0755);
|
makedir("/var/lib", 0755);
|
||||||
makedir("/var/lib/misc", 0755);
|
makedir("/var/lib/misc", 0755); /* _PATH_VARDB on some systems */
|
||||||
makedir("/var/lib/alarm", 0755);
|
makedir("/var/lib/alarm", 0755);
|
||||||
makedir("/var/lib/urandom",0755);
|
makedir("/var/lib/urandom",0755);
|
||||||
if (fisdir("/run")) {
|
if (fisdir("/run")) {
|
||||||
|
|||||||
Reference in new issue
Block a user