]> git.proxmox.com Git - mirror_lxcfs.git/commitdiff
systemd: mkdir -p the target mount dir
authorTycho Andersen <tycho@tycho.pizza>
Wed, 29 Nov 2023 18:49:55 +0000 (11:49 -0700)
committerTycho Andersen <tycho@tycho.pizza>
Wed, 29 Nov 2023 18:50:34 +0000 (11:50 -0700)
This is probably in a postinst for a debian package or a snap somewhere,
but we're repackaging it somewhere and I have an ugly sed to fix it up.
Let's do it here instead.

Signed-off-by: Tycho Andersen <tycho@tycho.pizza>
config/init/systemd/lxcfs.service.in

index 8b43f5a39646db4f7f6d1a2662efe543e703087c..65c0a0eca4141ff64e1b26b22c507f4ab4666c02 100644 (file)
@@ -6,6 +6,7 @@ Documentation=man:lxcfs(1)
 
 [Service]
 OOMScoreAdjust=-1000
+ExecStartPre=/bin/mkdir -p {{LXCFSTARGETDIR}}
 ExecStart=/usr/bin/lxcfs {{LXCFSTARGETDIR}}
 KillMode=process
 Restart=on-failure