]> git.ipfire.org Git - thirdparty/systemd.git/commit
nspawn: accept --ephemeral --template= as alternative for --ephemeral --directory=
authorLennart Poettering <lennart@poettering.net>
Fri, 25 Nov 2016 00:00:31 +0000 (01:00 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 30 Nov 2016 23:25:51 +0000 (00:25 +0100)
commit8cd328d82e800fc6e2fe810500eea025ffbd93c1
tree190338f7825c79e104b550f3bb8b5d1061f5e2d6
parent3f342ec4b028914fa558855609cd932364558c05
nspawn: accept --ephemeral --template= as alternative for --ephemeral --directory=

As suggested in PR #3667.

This PR simply ensures that --template= can be used as alternative to
--directory= when --ephemeral is used, following the logic that for ephemeral
options the source directory is actually a template.

This does not deprecate usage of --directory= with --ephemeral, as I am not
convinced the old logic wouldn't make sense.

Fixes: #3667
src/nspawn/nspawn.c