This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 2.x development tree".
The branch, master has been updated via 0dcb85e89ef1c6aa6c55cc0f4528f4d57f31226f (commit) from 4335a5948f06fc70e77ffe947b6aabb538e4980a (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 0dcb85e89ef1c6aa6c55cc0f4528f4d57f31226f Author: Arne Fitzenreiter arne_f@ipfire.org Date: Sun Apr 4 17:03:00 2010 +0200
Installer: skip empty blockdevices. Fixes bug #0000585
-----------------------------------------------------------------------
Summary of changes: src/install+setup/install/mountdest.sh | 27 ++++++++++++++++++++++++++- 1 files changed, 26 insertions(+), 1 deletions(-)
Difference in files: diff --git a/src/install+setup/install/mountdest.sh b/src/install+setup/install/mountdest.sh index a824233..00243a9 100644 --- a/src/install+setup/install/mountdest.sh +++ b/src/install+setup/install/mountdest.sh @@ -24,6 +24,11 @@ echo "Scanning for possible destination drives" # scan IDE devices echo "--> IDE" for DEVICE in $(kudzu -qps -t 30 -c HD -b IDE | grep device: | cut -d ' ' -f 2 | sort | uniq); do + if [ "$(grep ${DEVICE} /proc/partitions)" = "" ]; then + umount /harddisk 2> /dev/null + echo "${DEVICE} is empty - SKIP" + continue + fi mount /dev/${DEVICE}1 /harddisk 2> /dev/null if [ -n "$(ls /harddisk/ipfire-*.tlz 2>/dev/null)" ]; then umount /harddisk 2> /dev/null @@ -40,7 +45,12 @@ done # scan USB/SCSI devices echo "--> USB/SCSI" for DEVICE in $(kudzu -qps -t 30 -c HD -b SCSI | grep device: | cut -d ' ' -f 2 | sort | uniq); do - mount /dev/${DEVICE} /harddisk 2> /dev/null + if [ "$(grep ${DEVICE} /proc/partitions)" = "" ]; then + umount /harddisk 2> /dev/null + echo "${DEVICE} is empty - SKIP" + continue + fi + mount /dev/${DEVICE} /harddisk 2> /dev/null if [ -n "$(ls /harddisk/ipfire-*.tlz 2>/dev/null)" ]; then umount /harddisk 2> /dev/null echo "${DEVICE} is source drive - SKIP" @@ -64,6 +74,11 @@ done # scan RAID devices echo "--> RAID" for DEVICE in $(kudzu -qps -t 30 -c HD -b RAID | grep device: | cut -d ' ' -f 2 | sort | uniq); do + if [ "$(grep ${DEVICE}p1 /proc/partitions)" = "" ]; then + umount /harddisk 2> /dev/null + echo "${DEVICE}p1 is empty - SKIP" + continue + fi mount /dev/${DEVICE}p1 /harddisk 2> /dev/null if [ -n "$(ls /harddisk/ipfire-*.tlz 2>/dev/null)" ]; then umount /harddisk 2> /dev/null @@ -71,6 +86,11 @@ for DEVICE in $(kudzu -qps -t 30 -c HD -b RAID | grep device: | cut -d ' ' -f 2 continue else umount /harddisk 2> /dev/null + if [ "$(grep ${DEVICE} /proc/partitions)" = "" ]; then + umount /harddisk 2> /dev/null + echo "${DEVICE} is empty - SKIP" + continue + fi mount /dev/${DEVICE}1 /harddisk 2> /dev/null if [ -n "$(ls /harddisk/ipfire-*.tlz 2>/dev/null)" ]; then umount /harddisk 2> /dev/null @@ -98,6 +118,11 @@ for DEVICE in vda vdb vdc vdd; do if [ ! -e /dev/${DEVICE} ]; then continue else + if [ "$(grep ${DEVICE} /proc/partitions)" = "" ]; then + umount /harddisk 2> /dev/null + echo "${DEVICE} is empty - SKIP" + continue + fi mount /dev/${DEVICE} /harddisk 2> /dev/null if [ -n "$(ls /harddisk/ipfire-*.tlz 2>/dev/null)" ]; then umount /harddisk 2> /dev/null
hooks/post-receive -- IPFire 2.x development tree