<refsect1>
<title>Notes</title>
<para>
- <command>lxc-clone</command> is superseded by <command>lxc-copy</command>.
+ <command>lxc-clone</command> is deprecated in favor of
+ <command>lxc-copy</command>.
</para>
</refsect1>
_ = gettext.gettext
gettext.textdomain("lxc-start-ephemeral")
-
# Other functions
+
+
+def printstderr(*args):
+ print("lxc-start-ephemeral is deprecated in favor of lxc-copy\n",
+ *args, file=sys.stderr)
+
+
def randomMAC():
import random
raise Exception("Unable to find a runtime directory")
+# Inform that lxc-start-ephemeral is deprecated
+printstderr()
+
# Begin parsing the command line
parser = argparse.ArgumentParser(description=_(
"LXC: Start an ephemeral container"),
args = parser.parse_args()
-## Check that -d and CMD aren't used at the same time
+# Check that -d and CMD aren't used at the same time
if args.command and args.daemon:
parser.error(_("You can't use -d and a command at the same time."))
-## Check that -k isn't used with -s tmpfs
+# Check that -k isn't used with -s tmpfs
if not args.storage_type:
if args.keep_data:
args.storage_type = "dir"