poky/meta/files/overlayfs-create-dirs.service.in
Stefan Herbrechtsmeier 6452862674 files: overlayfs-create-dirs: split ExecStart into two commands
Split ExecStart into two commands because systemd interpret an ExecStart
entry as a single executable with multiple parameters.

systemd[1]: Starting Overlayfs directories setup...
mkdir: cannot create directory '&&': Read-only file system
mkdir: cannot create directory 'mkdir': Read-only file system

(From OE-Core rev: 209204f7f9d294543fd57b90e29a95c2cde66d99)

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25 12:41:24 +00:00

16 lines
337 B
SYSTEMD

[Unit]
Description=Overlayfs directories setup
Requires={DATA_MOUNT_UNIT}
After={DATA_MOUNT_UNIT}
DefaultDependencies=no
[Service]
Type=oneshot
ExecStart=mkdir -p {DATA_MOUNT_POINT}/upper{LOWERDIR}
ExecStart=mkdir -p {DATA_MOUNT_POINT}/workdir{LOWERDIR}
RemainAfterExit=true
StandardOutput=journal
[Install]
WantedBy=multi-user.target