Revision b05b1ab6 common.sh.in

b/common.sh.in
105 105
EOF
106 106
}
107 107

  
108
mount_disk0() {
109
    local tmpdir=$1 root_dev=$2 boot_dev=$3
110
    mount $root_dev $tmpdir
111
    CLEANUP+=("umount $tmpdir")
112
    $MKDIR_P $tmpdir/boot
113
    mount $boot_dev $tmpdir/boot
114
    CLEANUP+=("umount $tmpdir/boot")
115
}
116

  
108 117
map_disk0() {
109 118
  blockdev="$1"
110 119
  filesystem_dev_base=`$KPARTX -l -p- $blockdev | \
......
151 160
# will use it, this declaration is to make sure the variable is set
152 161
: ${CDINSTALL:="yes"}
153 162
: ${IMAGE_NAME:=""}
163
: ${IMAGE_TYPE:="qemu"}
154 164
: ${ARCH:=""}
155 165
: ${CUSTOMIZE_DIR:="@sysconfdir@/ganeti/instance-image.d"}
156 166
: ${VARIANTS_DIR:="@sysconfdir@/ganeti/instance-image/variants"}

Also available in: Unified diff