l sync-containers: fix ecryptfs startup bug
This commit is contained in:
parent
859a6d1e73
commit
1fb7abde92
@ -10,6 +10,8 @@ with import <stockholm/lib>;
|
|||||||
plain = ''
|
plain = ''
|
||||||
'';
|
'';
|
||||||
ecryptfs = ''
|
ecryptfs = ''
|
||||||
|
# we start and exit ecryptfs-manager again to circumvent a bug where mounting the ecryptfs fails
|
||||||
|
echo 4 | ${pkgs.ecryptfs}/bin/ecryptfs-manager
|
||||||
if ! mount | grep -q '${cfg.dataLocation}/${cname}/ecryptfs on /var/lib/containers/${cname}/var/state type ecryptfs'; then
|
if ! mount | grep -q '${cfg.dataLocation}/${cname}/ecryptfs on /var/lib/containers/${cname}/var/state type ecryptfs'; then
|
||||||
if [ -e ${cfg.dataLocation}/${cname}/ecryptfs/.cfg.json ]; then
|
if [ -e ${cfg.dataLocation}/${cname}/ecryptfs/.cfg.json ]; then
|
||||||
${pkgs.ecrypt}/bin/ecrypt mount ${cfg.dataLocation}/${cname}/ecryptfs /var/lib/containers/${cname}/var/state
|
${pkgs.ecrypt}/bin/ecrypt mount ${cfg.dataLocation}/${cname}/ecryptfs /var/lib/containers/${cname}/var/state
|
||||||
|
Loading…
Reference in New Issue
Block a user