[Buildroot] [Bug 8081] New: systemd init system: /tmp is not mode 1777

bugzilla at busybox.net bugzilla at busybox.net
Sun May 3 13:05:00 UTC 2015


https://bugs.busybox.net/show_bug.cgi?id=8081

           Summary: systemd init system: /tmp is not mode 1777
           Product: buildroot
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
        AssignedTo: unassigned at buildroot.uclibc.org
        ReportedBy: bos at je-eigen-domein.nl
                CC: buildroot at uclibc.org
   Estimated Hours: 0.0


Using:

- latest buildroot from git
- start with raspberrypi2_defconfig
- set systemd as init system
- initramfs linked into kernel

/tmp is not mode 1777 causing software that does not run as root and wants to
write to /tmp or (linked folders like /var/log) to fail.

==
# ls -ld /tmp
drwxr-xr-x    7 root     root           220 Jan  1 00:00 /tmp
==

Also tmpfiles service fails to start:

==
 systemd-tmpfiles-setup.service - Create Volatile Files and Directories
   Loaded: loaded (/lib/systemd/system/systemd-tmpfiles-setup.service; static;
vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 1970-01-01 00:00:06 UTC; 2min
8s ago
     Docs: man:tmpfiles.d(5)
           man:systemd-tmpfiles(8)
  Process: 131 ExecStart=/bin/systemd-tmpfiles --create --remove --boot
--exclude-prefix=/dev (code=exited, status=1/FAILURE)
 Main PID: 131 (code=exited, status=1/FAILURE)
==

And logging is not functional:

==
# journalctl
No journal files were found.
==

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the buildroot mailing list