then
msg "Starting multicast receiver, server will initiate transfer"
- /usr/local/bin/udp-receiver --nokbd --pipe 'tar -xvf - -C /cloner/mnt'
+ /usr/bin/udp-receiver --nokbd --pipe 'tar -xvf - -C /cloner/mnt'
if [ "$?" = "0" ]
then
#msg "The installation process can take a while, check ${ANSI_RED}[ALT-F4]${ANSI_DONE} to view progress"
msg -n "Syncing data from ${ANSI_BLUE}${_server}${ANSI_DONE} image ${ANSI_BLUE}${_image}${ANSI_DONE}"
- /usr/local/bin/rsync -avz --numeric-ids \
+ /usr/bin/rsync -avz --numeric-ids \
${_server}::${CLONER_IMAGE_PATH}/${_image}/data/ /cloner/mnt/
if [ "$?" = "0" ]
then
msg -n "Partition device ${ANSI_BLUE}${DEVICE}${ANSI_DONE} "
- /usr/local/bin/sfdisk --force --no-reread -uM /dev/${DEVICE} < ${i} \
+ /usr/bin/sfdisk --force --no-reread -uM /dev/${DEVICE} < ${i} \
>> /tmp/stdout.log 2>>/tmp/stderr.log
if [ "$?" != "0" ];
msg -n "Partition device ${ANSI_BLUE}${DEVICE}${ANSI_DONE} "
- /usr/local/bin/sfdisk --force --no-reread /dev/${DEVICE} < ${i} \
+ /usr/bin/sfdisk --force --no-reread /dev/${DEVICE} < ${i} \
>> /tmp/stdout.log 2>>/tmp/stderr.log
if [ "$?" != "0" ];
msg -n "Creating ${ANSI_BLUE}${MD_DEVICE}${ANSI_DONE} - $MD_LEVEL on $MD_DISK_QTY disk(s)"
- /usr/local/bin/mdadm --create ${MD_DEVICE} --force --run --level=${MD_LEVEL} --chunk=128 --raid-devices=${MD_DISK_QTY} --spare-devices=${MD_SPARE_QTY} ${MD_DISK_STRING} >> /tmp/stdout.log 2>> /tmp/stderr.log
+ /usr/bin/mdadm --create ${MD_DEVICE} --force --run --level=${MD_LEVEL} --chunk=128 --raid-devices=${MD_DISK_QTY} --spare-devices=${MD_SPARE_QTY} ${MD_DISK_STRING} >> /tmp/stdout.log 2>> /tmp/stderr.log
done < /cloner/setup/raidconf
PV_UUID=`echo $line | awk '{print $3}'`
msg -n "Setting UUID on ${ANSI_BLUE}${PV_DEVICE}${ANSI_DONE}"
- /usr/local/bin/lvm pvcreate -ff -y --uuid ${PV_UUID} \
+ /usr/bin/lvm pvcreate -ff -y --uuid ${PV_UUID} \
--restorefile /cloner/setup/lvm.${PV_VG} \
${PV_DEVICE} >> /tmp/stdout.log 2>> /tmp/stderr.log
VG_NAME=`echo $FILENAME | cut -d"." -f2`
msg -n "Restoring volume group ${ANSI_BLUE}${VG_NAME}${ANSI_DONE}"
- /usr/local/bin/lvm vgcfgrestore -f $i ${VG_NAME} \
+ /usr/bin/lvm vgcfgrestore -f $i ${VG_NAME} \
>> /tmp/stdout.log 2>> /tmp/stderr.log
if [ "$?" != "0" ];
ok_msg
fi
msg -n "Activating volume group ${ANSI_BLUE}${VG_NAME}${ANSI_DONE}"
- /usr/local/bin/lvm vgchange -a y ${VG_NAME} \
+ /usr/bin/lvm vgchange -a y ${VG_NAME} \
>> /tmp/stdout.log 2>> /tmp/stderr.log
if [ "$?" != "0" ];
case "${FS_TYPE}"
in
ext3)
- CMD="/usr/local/bin/mke2fs -F -j ${FS_DEVICE}"
+ CMD="/usr/bin/mke2fs -F -j ${FS_DEVICE}"
if [ "${FS_LABEL}" != "" ]
then
- CMD="/usr/local/bin/mke2fs -F -L ${FS_LABEL} -j ${FS_DEVICE}"
+ CMD="/usr/bin/mke2fs -F -L ${FS_LABEL} -j ${FS_DEVICE}"
fi
$CMD >> /tmp/stdout.log 2>> /tmp/stderr.log
fi
;;
ext2)
- CMD="/usr/local/bin/mke2fs -F ${FS_DEVICE}"
+ CMD="/usr/bin/mke2fs -F ${FS_DEVICE}"
if [ "${FS_LABEL}" != "" ]
then
- CMD="/usr/local/bin/mke2fs -F -L ${FS_LABEL} ${FS_DEVICE}"
+ CMD="/usr/bin/mke2fs -F -L ${FS_LABEL} ${FS_DEVICE}"
fi
$CMD >> /tmp/stdout.log 2>> /tmp/stderr.log
fi
;;
xfs)
- /usr/local/bin/mkfs.xfs -f ${FS_DEVICE} \
+ /usr/bin/mkfs.xfs -f ${FS_DEVICE} \
>> /tmp/stdout.log 2>> /tmp/stderr.log
if [ "$?" = "0" ]
then
;;
reiserfs)
- /usr/local/bin/mkreiserfs -ff ${FS_DEVICE} \
+ /usr/bin/mkreiserfs -ff ${FS_DEVICE} \
>> /tmp/stdout.log 2>> /tmp/stderr.log
if [ "$?" = "0" ]
fi
;;
swap)
- /usr/local/bin/mkswap -f ${FS_DEVICE} \
+ /usr/bin/mkswap -f ${FS_DEVICE} \
>> /tmp/stdout.log 2>> /tmp/stderr.log
if [ "$?" = "0" ]
then