[Bug 954632] [NEW] The -- option to lxc-start-ephemeral no longer works
Gary Poster
gary.poster at canonical.com
Wed Mar 14 01:11:16 UTC 2012
Public bug reported:
This fixes it:
=== modified file 'debian/local/lxc-start-ephemeral'
--- debian/local/lxc-start-ephemeral 2012-03-12 13:22:06 +0000
+++ debian/local/lxc-start-ephemeral 2012-03-14 01:10:20 +0000
@@ -100,6 +100,8 @@
esac
done
+COMMAND=$@
+COMMAND_LENGTH=$#
LXC_USER=${LXC_USER:-`id -un`}
# 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 StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null $LXC_KEY $LXC_USER@$IP_ADDRESS -- "$@"
+ ssh -n -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null $LXC_KEY $LXC_USER@$IP_ADDRESS -- "$COMMAND"
if [ ! 255 -eq $? ]; then
# If ssh returns 255 then its connection failed.
# Anything else is either success (status 0) or a
** Affects: lxc (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/954632
Title:
The -- option to lxc-start-ephemeral no longer works
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/954632/+subscriptions
More information about the Ubuntu-server-bugs
mailing list