mirror of
https://github.com/nix-community/linuxkit-nix.git
synced 2024-11-26 03:29:23 +03:00
dont store socket files in the nix store
Using the nix store to store the state files causes problems when restarting the guest because socket file types not supported by nix
This commit is contained in:
parent
cb2259cb28
commit
083e65f592
@ -180,16 +180,19 @@ let
|
|||||||
paths = [
|
paths = [
|
||||||
(writeRunitForegroundService "acpid" ''
|
(writeRunitForegroundService "acpid" ''
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
mkdir -p /var/lib/acpid && cd /var/lib/acpid
|
||||||
exec ${pkgsForLinux.busybox}/bin/acpid -f
|
exec ${pkgsForLinux.busybox}/bin/acpid -f
|
||||||
'')
|
'')
|
||||||
|
|
||||||
(writeRunitForegroundService "sshd" ''
|
(writeRunitForegroundService "sshd" ''
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
mkdir -p /var/lib/sshd && cd /var/lib/sshd
|
||||||
exec ${pkgsForLinux.openssh}/bin/sshd -D -e -f ${sshdConfig}
|
exec ${pkgsForLinux.openssh}/bin/sshd -D -e -f ${sshdConfig}
|
||||||
'')
|
'')
|
||||||
|
|
||||||
(writeRunitForegroundService "vpnkit-expose-port" ''
|
(writeRunitForegroundService "vpnkit-expose-port" ''
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
mkdir -p /var/lib/vpnkit-expose-port && cd /var/lib/vpnkit-expose-port
|
||||||
|
|
||||||
${pkgsForLinux.go-vpnkit}/bin/vpnkit-expose-port \
|
${pkgsForLinux.go-vpnkit}/bin/vpnkit-expose-port \
|
||||||
-i \
|
-i \
|
||||||
@ -203,6 +206,7 @@ let
|
|||||||
(writeRunitForegroundService "vpnkit-forwarder" ''
|
(writeRunitForegroundService "vpnkit-forwarder" ''
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
mkdir -p /var/lib/vpnkit-forwarder && cd /var/lib/vpnkit-forwarder
|
||||||
exec ${pkgsForLinux.go-vpnkit}/bin/vpnkit-forwarder
|
exec ${pkgsForLinux.go-vpnkit}/bin/vpnkit-forwarder
|
||||||
'')
|
'')
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user