summaryrefslogtreecommitdiffstats
path: root/recipes/mkcard/files
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/mkcard/files')
-rwxr-xr-xrecipes/mkcard/files/mkcard.sh16
1 files changed, 0 insertions, 16 deletions
diff --git a/recipes/mkcard/files/mkcard.sh b/recipes/mkcard/files/mkcard.sh
index 3e70dbc..e75a176 100755
--- a/recipes/mkcard/files/mkcard.sh
+++ b/recipes/mkcard/files/mkcard.sh
@@ -32,11 +32,6 @@ echo ,,,-
32 32
33sleep 1 33sleep 1
34 34
35
36if [ -x `which kpartx` ]; then
37 kpartx -a ${DRIVE}
38fi
39
40# handle various device names. 35# handle various device names.
41# note something like fdisk -l /dev/loop0 | egrep -E '^/dev' | cut -d' ' -f1 36# note something like fdisk -l /dev/loop0 | egrep -E '^/dev' | cut -d' ' -f1
42# won't work due to https://bugzilla.redhat.com/show_bug.cgi?id=649572 37# won't work due to https://bugzilla.redhat.com/show_bug.cgi?id=649572
@@ -46,21 +41,10 @@ if [ ! -b ${PARTITION1} ]; then
46 PARTITION1=${DRIVE}p1 41 PARTITION1=${DRIVE}p1
47fi 42fi
48 43
49DRIVE_NAME=`basename $DRIVE`
50DEV_DIR=`dirname $DRIVE`
51
52if [ ! -b ${PARTITION1} ]; then
53 PARTITION1=$DEV_DIR/mapper/${DRIVE_NAME}p1
54fi
55
56PARTITION2=${DRIVE}2 44PARTITION2=${DRIVE}2
57if [ ! -b ${PARTITION2} ]; then 45if [ ! -b ${PARTITION2} ]; then
58 PARTITION2=${DRIVE}p2 46 PARTITION2=${DRIVE}p2
59fi 47fi
60if [ ! -b ${PARTITION2} ]; then
61 PARTITION2=$DEV_DIR/mapper/${DRIVE_NAME}p2
62fi
63
64 48
65# now make partitions. 49# now make partitions.
66if [ -b ${PARTITION1} ]; then 50if [ -b ${PARTITION1} ]; then