Details
Details
Assignee
Stephane Desneux
Stephane DesneuxReporter
Stephane Desneux
Stephane DesneuxFix versions
Labels
Contract ID
Hardware Platform(s) Affected
Intel Minnowboard
Intel Upsquare
NXP i.MX6
Raspberry Pi 3
Renesas H3
Renesas M3
Renesas M3+KF
TI Vayu
Components
Affects versions
Priority
Created July 3, 2019 at 1:23 PM
Updated September 19, 2019 at 12:06 PM
Resolved July 8, 2019 at 6:16 PM
With recent changes introduced for the "run as non-root" feature, some services now need to use /tmp as a temp folder (before, it was in the root user directory).
Everything works correctly when booting from a normal storage device (usb, sd-card, ...) on all platforms because systemd is responsible for mounting /tmp and /root and applies the correct smack label, as specified in the config fragment /lib/systemd/system/tmp.mount.d/smack.conf .
But when using netboot, the initrd script is responsible for mounting /tmp and /run before pivoting on new rootfs and running systemd. As a consequence, systemd doesn't try to remount /tmp or /run (and correct smack label is not applied).
I see 2 potential fixes ATM:
make the initrd not mount /tmp or /run (or mount then umount them)
make the initrd mount /tmp and /run as systemd usually does (with option 'smackfsroot=*')