Package: lxc Version: 0.9.0~alpha2-10 Severity: normal Tags: patch Dear Maintainer,
I have tried to create Debian container with following command: sudo lxc-create -n debian -t debian It was working just fine until I changed my current directory to /var/lib/lxc. Here is the output: denys@pc-deg:/var/lib/lxc$ sudo lxc-create -n debian -t debian lxc-create: No config file specified, using the default config /etc/lxc/lxc.conf sha1sum: debian: Is a directory /usr/bin/lxc-create: 328: /usr/bin/lxc-create: debian: not found lxc-create: failed to execute template 'debian' lxc-create: aborted denys@pc-deg:/var/lib/lxc$ It seems that lxc-create script considers newly created container directory as template. I've added additional check to the script and the problem has gone: --- /usr/bin/lxc-create 2013-02-09 09:12:29.000000000 +0200 +++ /usr/bin/lxc-create.fixed 2013-02-26 09:39:25.604605629 +0200 @@ -281,7 +281,7 @@ if [ ! -z "$lxc_template" ]; then # Allow for a path to be provided as the template name - if [ -x "$lxc_template" ]; then + if [ -x "$lxc_template" ] && [ -f "$lxc_template" ]; then template_path=$lxc_template else template_path=${templatedir}/lxc-$lxc_template -- 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.44 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: * lxc/directory: /var/lib/lxc lxc/title: lxc/auto: true -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org