~ubuntu-branches/ubuntu/quantal/lxc/quantal-201209191812

« back to all changes in this revision

Viewing changes to src/lxc/lxc-clone.in

  • Committer: Serge Hallyn
  • Date: 2012-09-13 12:55:05 UTC
  • Revision ID: serge.hallyn@ubuntu.com-20120913125505-52364l1h6r7rmm22
0217-lxc-clone-fix-fstab: fix check for lxc.mount in lxc-clone
(LP: #1049987)

Show diffs side-by-side

added added

removed removed

Lines of Context:
180
180
sed -i '/lxc.utsname/d' $lxc_path/$lxc_new/config
181
181
echo "lxc.utsname = $hostname" >> $lxc_path/$lxc_new/config
182
182
 
183
 
grep "lxc.mount =" $lxc_path/$lxc_new/config >/dev/null 2>&1 && { sed -i '/lxc.mount =/d' $lxc_path/$lxc_new/config; echo "lxc.mount = $lxc_path/$lxc_new/fstab" >> $lxc_path/$lxc_new/config; }
 
183
grep "lxc.mount" $lxc_path/$lxc_new/config >/dev/null 2>&1 && { sed -i '/lxc.mount/d' $lxc_path/$lxc_new/config; echo "lxc.mount = $lxc_path/$lxc_new/fstab" >> $lxc_path/$lxc_new/config; }
184
184
 
185
185
if [ -e  $lxc_path/$lxc_orig/fstab ];then
186
186
    cp $lxc_path/$lxc_orig/fstab $lxc_path/$lxc_new/fstab