Package: lxc
Version: 0.9.0~alpha3-2+deb8u1
Severity: normal

Dear Maintainer,
    If I use fstab in lxc like this:
lxc.mount       = /var/lib/lxc/jessie/fstab
    After lxc-clone -o jessie -n test-01, I got a config like this:
lxc.mount       = /var/lib/lxc/jessie/fstab
    That's not right, the path of fstab should been changed.
    I think this maybe because lxc-clone's code in line 187:
grep "lxc.mount[ \t]" $lxc_path/$lxc_new/config >/dev/null 2>&1 && { sed -i
'/lxc.mount[ \t]/d' $lxc_path/$lxc_new/config; echo "lxc.mount =
$lxc_path/$lxc_new/fstab" >> $lxc_path/$lxc_new/config; }
    It use \t without -P. I try to fixed it by this.
grep "lxc.mount[[:space:]]" $lxc_path/$lxc_new/config >/dev/null 2>&1 && { sed
-i "s@lxc.mount[[:space:]]=.*@lxc.mount\t= $lxc_path/$lxc_new/fstab@"
$lxc_path/$lxc_new/config; }
    It's work for me.

        thx for helping



-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.10-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages lxc depends on:
ii  libapparmor1       2.8.0-1+b2
ii  libc6              2.17-93
ii  libcap2            1:2.22-1.2
ii  multiarch-support  2.17-93

Versions of packages lxc recommends:
ii  debootstrap  1.0.53
ii  libcap2-bin  1:2.22-1.2

lxc suggests no packages.

-- Configuration Files:
/etc/lxc/default.conf changed:
lxc.network.type                        = veth
lxc.network.flags                       = up
lxc.network.link                        = br0
lxc.network.name                        = eth0


-- debconf information:
  lxc/shutdown: /usr/bin/lxc-halt
* 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

Reply via email to