nspawn: complain if people still use --share-system

This commit is contained in:
Lennart Poettering 2018-05-12 13:17:38 -07:00
parent 4e1d6aa983
commit 63d1c29ffa

View file

@ -868,6 +868,7 @@ static int parse_argv(int argc, char *argv[]) {
case ARG_SHARE_SYSTEM:
/* We don't officially support this anymore, except for compat reasons. People should use the
* $SYSTEMD_NSPAWN_SHARE_* environment variables instead. */
log_warning("Please do not use --share-system anymore, use $SYSTEMD_NSPAWN_SHARE_* instead.");
arg_clone_ns_flags = 0;
break;