]>
Raphaƫl G. Git Repositories - distgen/blob - genimg
9 # Copy distcook root config
10 cp $DISTCOOK/root.conf config
/
12 # Extract configuration
13 echo '#! /bin/sh -e' > lib
/config.sh
14 cat config
/*.conf
| perl
-pne 'if (/^#/) {undef $_;} else {s/^/export /}' >> lib
/config.sh
20 if [ -f "/dev/mapper/$SLASHNAME" -o -f "/dev/mapper/$DATANAME" ]; then
21 echo "Mapper name already exists, try to run:"
22 echo "cryptsetup close $SLASHNAME"
23 echo "cryptsetup close $DATANAME"
27 # Test loopa and loopb
28 if [ `losetup ${LOOPA} >/dev/null 2>&1; echo $?` -ne 1 -o `losetup ${LOOPB} >/dev/null 2>&1; echo $?` -ne 1 ]; then
29 echo "Loopa or loopb already exists, try to run:"
30 echo "mdadm -S /dev/md/$MDBOOT"
31 echo "mdadm -S /dev/md/$MDDATA"
32 echo "losetup -d ${LOOPA}"
33 echo "losetup -d ${LOOPB}"
38 if [ ! -d "$PWD/root" ]; then