The -- option to lxc-start-ephemeral no longer works
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
This fixes it:
=== modified file 'debian/
--- debian/
+++ debian/
@@ -100,6 +100,8 @@
esac
done
+COMMAND=$@
+COMMAND_LENGTH=$#
LXC_USER=
# validation
@@ -193,7 +195,7 @@
sudo lxc-start -n $LXC_NAME -d
LXC_RUNNING=1
- if [ $# -gt 0 ]; then
+ if [ $COMMAND_LENGTH -gt 0 ]; then
# when lxc-attach support arrives in the kernel, we can switch to
# that
delay=30
@@ -209,7 +211,7 @@
# Repeatedly try to connect over SSH until we either succeed
# or time out.
for i in $(seq 1 30); do
- ssh -n -o StrictHostKeyCh
+ ssh -n -o StrictHostKeyCh
if [ ! 255 -eq $? ]; then
Thanks, Gary, I"ll include this patch in the next upload.