2011-05-18 11:53:07 +00:00
|
|
|
#! /bin/sh
|
|
|
|
set -e
|
|
|
|
|
2010-09-09 15:54:17 +00:00
|
|
|
# Copyright (C) 2010 Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# GRUB is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# GRUB is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
2010-09-09 15:40:17 +00:00
|
|
|
|
2011-05-03 16:57:39 +00:00
|
|
|
parted=parted
|
2010-09-09 15:40:17 +00:00
|
|
|
grubshell=@builddir@/grub-shell
|
|
|
|
|
2012-06-06 10:36:33 +00:00
|
|
|
. "@builddir@/grub-core/modinfo.sh"
|
|
|
|
|
2010-09-09 15:40:17 +00:00
|
|
|
create_disk_image () {
|
2012-03-10 13:35:17 +00:00
|
|
|
name="$1"
|
2010-09-09 15:40:17 +00:00
|
|
|
size=$2
|
2012-03-10 13:35:17 +00:00
|
|
|
rm -f "${name}"
|
|
|
|
dd if=/dev/zero of="${name}" bs=512 count=1 seek=$((size * 2048 - 1)) status=noxfer > /dev/null
|
2010-09-09 15:40:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check_output () {
|
|
|
|
outfile=$1
|
|
|
|
shift
|
|
|
|
|
2012-06-06 10:36:33 +00:00
|
|
|
for dsk in $@; do
|
|
|
|
if ! grep "($dsk)" "${outfile}" >/dev/null
|
2010-09-09 15:40:17 +00:00
|
|
|
then
|
2012-06-06 10:36:33 +00:00
|
|
|
echo "($dsk): disk/partiton not found"
|
2010-09-09 15:40:17 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
list_parts () {
|
|
|
|
mod=$1;
|
|
|
|
shift;
|
2012-06-06 10:36:33 +00:00
|
|
|
imgfile="$1"
|
2010-09-09 15:40:17 +00:00
|
|
|
shift
|
2012-06-06 10:36:33 +00:00
|
|
|
outfile="$1"
|
2010-09-09 15:40:17 +00:00
|
|
|
shift
|
|
|
|
|
2013-04-11 23:29:45 +00:00
|
|
|
echo ls | "${grubshell}" --qemu-opts="-$qemudisk ${imgfile}" \
|
2012-06-06 10:36:33 +00:00
|
|
|
--modules=$mod | tr -d "\n\r" > "${outfile}"
|
|
|
|
cat "${outfile}"
|
2010-09-09 15:40:17 +00:00
|
|
|
echo
|
|
|
|
}
|
|
|
|
|
2012-06-06 10:36:33 +00:00
|
|
|
case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in
|
2012-06-15 17:42:25 +00:00
|
|
|
mips-qemu_mips | mipsel-qemu_mips | i386-qemu | i386-multiboot | i386-coreboot | mipsel-loongson)
|
2012-06-06 10:36:33 +00:00
|
|
|
disk=ata0
|
2013-04-11 23:29:45 +00:00
|
|
|
qemudisk=hda
|
2012-06-06 10:36:33 +00:00
|
|
|
;;
|
2012-06-08 21:02:37 +00:00
|
|
|
powerpc-ieee1275)
|
|
|
|
disk=ieee1275//pci@80000000/mac-io@4/ata-3@20000/disk@0
|
2013-04-11 23:29:45 +00:00
|
|
|
qemudisk=hda
|
2013-04-24 20:24:28 +00:00
|
|
|
# QEMU firmware has bugs which prevent it from accessing hard disk w/o recognised label.
|
2012-06-08 21:02:37 +00:00
|
|
|
exit 0
|
|
|
|
;;
|
2013-04-14 15:16:32 +00:00
|
|
|
sparc64-ieee1275)
|
|
|
|
disk=ieee1275//pci@1fe\,0/pci-ata@5/ide0@500/disk@0
|
|
|
|
qemudisk=hda
|
2013-04-24 20:24:28 +00:00
|
|
|
# QEMU firmware has bugs which prevent it from accessing hard disk w/o recognised label.
|
2013-04-14 15:16:32 +00:00
|
|
|
exit 0
|
|
|
|
;;
|
2013-04-11 23:29:45 +00:00
|
|
|
i386-ieee1275)
|
|
|
|
disk=ieee1275/d
|
|
|
|
qemudisk=hdb
|
2013-04-24 20:24:28 +00:00
|
|
|
# QEMU firmware has bugs which prevent it from accessing hard disk w/o recognised label.
|
2013-04-12 15:51:43 +00:00
|
|
|
exit 0
|
2013-04-11 23:29:45 +00:00
|
|
|
;;
|
2013-04-24 20:24:28 +00:00
|
|
|
mips-arc)
|
|
|
|
# ARC firmware has bugs which prevent it from accessing hard disk w/o dvh disklabel.
|
2013-04-25 00:22:20 +00:00
|
|
|
exit 0 ;;
|
2012-06-06 10:36:33 +00:00
|
|
|
*)
|
|
|
|
disk=hd0
|
2013-04-11 23:44:14 +00:00
|
|
|
qemudisk=hda
|
2012-06-06 10:36:33 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
imgfile="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 1
|
|
|
|
outfile="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 1
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# MSDOS partition types
|
|
|
|
#
|
|
|
|
|
|
|
|
echo "Checking MSDOS partition types..."
|
|
|
|
|
|
|
|
# 0 primary
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 64
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel msdos
|
|
|
|
list_parts part_msdos "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
# 1 primary
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 64
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel msdos mkpart primary 0 10M
|
|
|
|
list_parts part_msdos "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,msdos1
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
# 2 primary
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 128
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel msdos mkpart primary 0 10M mkpart primary 10M 20M
|
|
|
|
list_parts part_msdos "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,msdos1 $disk,msdos2
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
# 3 primary
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 128
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel msdos mkpart primary 0 10M mkpart primary 10M 20M mkpart primary 20M 30M
|
|
|
|
list_parts part_msdos "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,msdos1 $disk,msdos2 $disk,msdos3
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
# 4 primary
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 128
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel msdos mkpart primary 0 10M mkpart primary 10M 20M mkpart primary 20M 30M mkpart primary 30M 40M
|
|
|
|
list_parts part_msdos "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,msdos1 $disk,msdos2 $disk,msdos3 $disk,msdos4
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
# 1 primary, 1 extended
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 128
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel msdos mkpart primary 0 10M mkpart primary 10M 20M mkpart extended 20M 100%
|
|
|
|
list_parts part_msdos "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,msdos1
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
# 1 primary, 1 extended, 1 logical
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 128
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel msdos mkpart primary 0 10M mkpart primary 10M 20M mkpart extended 20M 100% mkpart logical 20M 30M
|
|
|
|
list_parts part_msdos "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,msdos1 $disk,msdos5
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
# 1 primary, 1 extended, 2 logical
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 128
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel msdos mkpart primary 0 10M mkpart primary 10M 20M mkpart extended 20M 100% mkpart logical 20M 30M mkpart logical 30M 40M
|
|
|
|
list_parts part_msdos "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,msdos1 $disk,msdos5 $disk,msdos6
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
# 1 primary, 1 extended, 3 logical
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 128
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel msdos mkpart primary 0 10M mkpart primary 10M 20M mkpart extended 20M 100% mkpart logical 20M 30M mkpart logical 30M 40M mkpart logical 40M 50M
|
|
|
|
list_parts part_msdos "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,msdos1 $disk,msdos5 $disk,msdos6 $disk,msdos7
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
# 1 primary, 1 extended, 4 logical
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 128
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel msdos mkpart primary 0 10M mkpart primary 10M 20M mkpart extended 20M 100% mkpart logical 20M 30M mkpart logical 30M 40M mkpart logical 40M 50M mkpart logical 50M 60M
|
|
|
|
list_parts part_msdos "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,msdos1 $disk,msdos5 $disk,msdos6 $disk,msdos7 $disk,msdos8
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# GPT partition types
|
|
|
|
#
|
|
|
|
|
|
|
|
echo "Checking GPT partition types..."
|
|
|
|
|
|
|
|
# 0 parts
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 64
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel gpt
|
|
|
|
list_parts part_gpt "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
# 1 parts
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 64
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel gpt mkpart 1 0 10M
|
|
|
|
list_parts part_gpt "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,gpt1
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
# 2 parts
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 128
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel gpt mkpart 1 0 10M mkpart 2 10M 20M
|
|
|
|
list_parts part_gpt "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,gpt1 $disk,gpt2
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
# 3 parts
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 128
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel gpt mkpart 1 0 10M mkpart 2 10M 20M mkpart 3 20M 30M
|
|
|
|
list_parts part_gpt "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,gpt1 $disk,gpt2 $disk,gpt3
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
# 4 parts
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 128
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel gpt mkpart 1 0 10M mkpart 2 10M 20M mkpart 4 20M 30M mkpart 5 30M 40M
|
|
|
|
list_parts part_gpt "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,gpt1 $disk,gpt2 $disk,gpt3 $disk,gpt4
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
# 5 parts
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 128
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel gpt mkpart 1 0 10M mkpart 2 10M 20M mkpart 3 20M 30M mkpart 4 30M 40M mkpart 5 40M 50M
|
|
|
|
list_parts part_gpt "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,gpt1 $disk,gpt2 $disk,gpt3 $disk,gpt4 $disk,gpt5
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
# 6 parts
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 128
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel gpt mkpart 1 0 10M mkpart 2 10M 20M mkpart 3 20M 30M mkpart 4 30M 40M mkpart 5 40M 50M mkpart 6 50M 60M
|
|
|
|
list_parts part_gpt "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,gpt1 $disk,gpt2 $disk,gpt3 $disk,gpt4 $disk,gpt5 $disk,gpt6
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# SUN partition types
|
|
|
|
#
|
|
|
|
# It seems partition #3 is reserved for whole disk by parted.
|
|
|
|
#
|
|
|
|
|
|
|
|
echo "Checking SUN partition types..."
|
|
|
|
|
|
|
|
# 0 parts
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 64
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel sun
|
|
|
|
list_parts part_sun "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
# 1 parts
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 64
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel sun mkpart 0 10M
|
|
|
|
list_parts part_sun "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,sun1
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
# 2 parts
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 128
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel sun mkpart 0 10M mkpart 10M 20M
|
|
|
|
list_parts part_sun "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,sun1 $disk,sun2
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
# 3 parts
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 128
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel sun mkpart 0 10M mkpart 10M 20M mkpart 20M 30M
|
|
|
|
list_parts part_sun "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,sun1 $disk,sun2 $disk,sun4
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
# 4 parts
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 128
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel sun mkpart 0 10M mkpart 10M 20M mkpart 20M 30M mkpart 30M 40M
|
|
|
|
list_parts part_sun "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,sun1 $disk,sun2 $disk,sun4 $disk,sun5
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
# 5 parts
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 128
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel sun mkpart 0 10M mkpart 10M 20M mkpart 20M 30M mkpart 30M 40M mkpart 40M 50M
|
|
|
|
list_parts part_sun "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,sun1 $disk,sun2 $disk,sun4 $disk,sun5 $disk,sun6
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
# 6 parts
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 128
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel sun mkpart 0 10M mkpart 10M 20M mkpart 20M 30M mkpart 30M 40M mkpart 40M 50M mkpart 50M 60M
|
|
|
|
list_parts part_sun "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,sun1 $disk,sun2 $disk,sun4 $disk,sun5 $disk,sun6 $disk,sun7
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Apple partition types
|
|
|
|
#
|
|
|
|
# Partition table itself is part of some partition, so there is always
|
|
|
|
# a partition by default. But I don't understand why GRUB displays
|
|
|
|
# two partitions by default :-(
|
|
|
|
#
|
|
|
|
|
|
|
|
echo "Checking APPLE partition types..."
|
|
|
|
|
|
|
|
# 0 parts
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 64
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel mac
|
|
|
|
list_parts part_apple "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,apple1 $disk,apple2
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
# 1 parts
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 64
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel mac mkpart a 1M 10M
|
|
|
|
list_parts part_apple "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,apple1 $disk,apple2 $disk,apple3
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
# 2 parts
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 128
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel mac mkpart a 1M 10M mkpart b 10M 20M
|
|
|
|
list_parts part_apple "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,apple1 $disk,apple2 $disk,apple3 $disk,apple4
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
# 3 parts
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 128
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel mac mkpart a 1M 10M mkpart b 10M 20M mkpart c 20M 30M
|
|
|
|
list_parts part_apple "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,apple1 $disk,apple2 $disk,apple4 $disk,apple5
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
# 4 parts
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 128
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel mac mkpart a 1M 10M mkpart b 10M 20M mkpart c 20M 30M mkpart d 30M 40M
|
|
|
|
list_parts part_apple "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,apple1 $disk,apple2 $disk,apple4 $disk,apple5 $disk,apple6
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
# 5 parts
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 128
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel mac mkpart a 1M 10M mkpart b 10M 20M mkpart c 20M 30M mkpart d 30M 40M mkpart e 40M 50M
|
|
|
|
list_parts part_apple "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,apple1 $disk,apple2 $disk,apple4 $disk,apple5 $disk,apple6 $disk,apple7
|
2010-09-09 15:40:17 +00:00
|
|
|
|
|
|
|
# 6 parts
|
2012-06-06 10:36:33 +00:00
|
|
|
create_disk_image "${imgfile}" 128
|
|
|
|
${parted} -a none -s "${imgfile}" mklabel mac mkpart a 1M 10M mkpart b 10M 20M mkpart c 20M 30M mkpart d 30M 40M mkpart e 40M 50M mkpart f 50M 60M
|
|
|
|
list_parts part_apple "${imgfile}" "${outfile}"
|
|
|
|
check_output "${outfile}" $disk $disk,apple1 $disk,apple2 $disk,apple4 $disk,apple5 $disk,apple6 $disk,apple7 $disk,apple8
|