nixos/containers: Fix initial dummy deploy
This commit is contained in:
parent
46df9b8aa8
commit
01cb95de6d
@ -209,12 +209,16 @@ in
|
|||||||
mkdir -p -m 0755 "$root"/sbin "$root"/etc
|
mkdir -p -m 0755 "$root"/sbin "$root"/etc
|
||||||
touch "$root"/etc/os-release
|
touch "$root"/etc/os-release
|
||||||
|
|
||||||
if [ -e "${containerSystem}"/prepare-root ]; then
|
${if system == sysProfile then ''
|
||||||
initSource="${containerSystem}"/prepare-root
|
if [ -e "${sysProfile}"/prepare-root ]; then
|
||||||
else
|
initSource="${containerSystem}"/prepare-root
|
||||||
initSource="${containerSystem}"/init
|
else
|
||||||
fi
|
initSource="${containerSystem}"/init
|
||||||
ln -sf "$initSource" "$root"/sbin/init
|
fi
|
||||||
|
ln -sf "$initSource" "$root"/sbin/init
|
||||||
|
'' else ''
|
||||||
|
ln -sf "${containerSystem}/prepare-root" "$root"/sbin/init
|
||||||
|
''}
|
||||||
'';
|
'';
|
||||||
postStop =
|
postStop =
|
||||||
''
|
''
|
||||||
|
Loading…
Reference in New Issue
Block a user