Bug#460310: vzctl: upgrade from older versions looses --name settings

2008-01-31 Thread Dariush Pietrzak
for n in $(find /etc/vz/names -maxdepth 1 -name *.conf); do VEID= m=`echo $n|sed -e s/.conf//` . $n echo $VEID if [ -n $VEID ] ; then ln -s /etc/vz/conf/$VEID.conf $m fi rm -f $n done The /etc/vz/names/.conf file should be

Bug#460310: vzctl: upgrade from older versions looses --name settings

2008-01-31 Thread Ola Lundqvist
Hi darius On Thu, Jan 31, 2008 at 11:01:43AM +0100, Dariush Pietrzak wrote: for n in $(find /etc/vz/names -maxdepth 1 -name *.conf); do VEID= m=`echo $n|sed -e s/.conf//` . $n echo $VEID if [ -n $VEID ] ; then ln -s /etc/vz/conf/$VEID.conf $m fi

Bug#460310: vzctl: upgrade from older versions looses --name settings

2008-01-13 Thread Ola Lundqvist
Hi Thanks for the report. I was not aware that it had changed. I'll see what I can do about this. Exactly what did you need to do to solve the problem? I have personally not used the --name settings myself. Best regards, // Ola On Sat, Jan 12, 2008 at 12:25:12AM +0100, eyck wrote: Package:

Bug#460310: vzctl: upgrade from older versions looses --name settings

2008-01-13 Thread Dariush Pietrzak
Hello, Exactly what did you need to do to solve the problem? cd /etc/vz/names for n in *; do echo $n; m=`echo $n|sed -e s/.conf//`; v=`cat $n|sed -e s/VEID=.//|sed -e s/.$//`; echo $m;ln -s /etc/vz/conf/$v.conf $m; done did the trick for me, I guess something logically equivalent wouldn't

Bug#460310: vzctl: upgrade from older versions looses --name settings

2008-01-13 Thread Ola Lundqvist
Hi I assume that this would work as fine, or? for n in $(find /etc/vz/names -maxdepth 1 -name *.conf); do VEID= m=`echo $n|sed -e s/.conf//` . $n echo $VEID if [ -n $VEID ] ; then ln -s /etc/vz/conf/$VEID.conf $m fi rm -f $n

Bug#460310: vzctl: upgrade from older versions looses --name settings

2008-01-11 Thread eyck
Package: vzctl Version: 3.0.22-2 Severity: wishlist In previous versions --name setting has been kept in name.conf file in /etc/vz/names directory. In new vzctl it uses much cleaner symlinks like this: lrwxrwxrwx 1 root root 21 Jan 12 00:00 etchdev - /etc/vz/conf/777.conf -rw-r--r-- 1 root root