Package: lxc Version: 0.9.0~alpha3-1 Severity: normal Tags: patch upstream Dear Maintainer,
It seems that quoting or escaping in option argument for template is unusable with lxc-create. For example, I'm trying to set preseed file with space in path for debian: sudo lxc-create -n debian-wheezy-amd64 -t debian -- --preseed-file="/tmp/Work files/lxc.cfg" The file is present on the filesystem, but template script just ignores it. Same result with this command: sudo lxc-create -n debian-wheezy-amd64 -t debian -- --preseed-file=/tmp/Work\ files/lxc.cfg Then I moved the file to /tmp/Work/lxc.cfg, script works as expected: sudo lxc-create -n debian-wheezy-amd64 -t debian -- --preseed-file=/tmp/Work/lxc.cfg 'lxc-create' invokes template in line 327: $template_path --path=$lxc_path/$lxc_name --name=$lxc_name $? This change fixes script behaviour: $template_path --path=$lxc_path/$lxc_name --name=$lxc_name "$@" Need to mention, quoting "$?" also works fine for my particular example, but I discovered that with other template options it some times confuses 'getopt' utility used in most templates to parse options. -- System Information: Debian Release: 7.0 APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=uk_UA.UTF-8, LC_CTYPE=uk_UA.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages lxc depends on: ii debconf [debconf-2.0] 1.5.49 ii libapparmor1 2.7.103-4 ii libc6 2.13-38 ii libcap2 1:2.22-1.2 ii multiarch-support 2.13-38 Versions of packages lxc recommends: ii debootstrap 1.0.48 ii libcap2-bin 1:2.22-1.2 Versions of packages lxc suggests: pn debian-keyring <none> ii gpgv 1.4.12-7 pn live-debconfig-doc <none> ii rsync 3.0.9-4 -- debconf information excluded -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org