Remove lvm prescripts for autoyast
Hi, I made that script based in a script posted in the list. But it's different from the original. Some bug fixes. enjoy: ######################## <pre-scripts config:type="list"> <script> <filename>/vgremove.sh</filename> <interpreter>shell</interpreter> <source> <![CDATA[ #!/bin/sh vgs=`find /dev -name vg*` insmod lvm-mod vgscan for vg in $vgs do if [ -d $vg ] ; then vgchange -a y $vg lvs=`ls $vg` for lv in $lvs do if [ $lv != "group" ]; then lvremove -f $vg/$lv fi done vgchange -a n $vg vgremove $vg fi done mkswap /dev/cciss/c0d0 exit 0 ]]> </source> </script> </pre-scripts> ##################### __________________________________________________________________________ Acabe com aquelas janelinhas que pulam na sua tela. AntiPop-up UOL - É grátis! http://antipopup.uol.com.br/
participants (1)
-
howardc