From: Serge L. <sma...@us...> - 2010-10-09 19:49:10
|
Update of /cvsroot/devil-linux/build/scripts/scripts In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv30171 Modified Files: save-config Log Message: - it's better to rely on kernel instead of udev. In this case we can use not only local partitions (udev), but any block device - drbd, aoe etc (loopbacks are filtered out). Index: save-config =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/scripts/save-config,v retrieving revision 1.44 retrieving revision 1.45 diff -u -d -r1.44 -r1.45 --- save-config 22 Aug 2010 09:27:59 -0000 1.44 +++ save-config 9 Oct 2010 19:49:01 -0000 1.45 @@ -103,7 +103,8 @@ else # generate the device list we need to search for the configuration information - PARTITIONS=`for i in /dev/disk/by-path/*-part* ; do echo "/dev/"$(basename $(readlink $i)) ; done` + #PARTITIONS=`for i in /dev/disk/by-path/*-part* ; do echo "/dev/"$(basename $(readlink $i)) ; done` + PARTITIONS=`for i in $(grep -v "loop\|name\|^$" /proc/partitions | awk '{print $4}'); do echo "/dev/$i" ; done` FLOPPIES=`find /dev/floppy/ -name "?" 2> /dev/null` CONFIG_SRC_LIST="$PARTITIONS $FLOPPIES" |