Revision 1876c955 snf-image-helper/tasks/10FixPartitionTable.in
b/snf-image-helper/tasks/10FixPartitionTable.in | ||
---|---|---|
43 | 43 |
|
44 | 44 |
table_type=$(get_partition_table_type "$table") |
45 | 45 |
|
46 |
if [ "$SNF_IMAGE_PROPERTY_OSFAMILY" = "freebsd" -a "$table_type" != "gpt" ]; then |
|
47 |
log_error "The image contains a(n) $table_type partition table. " \ |
|
48 |
"For FreeBSD images only GUID Partition Tables are supported." |
|
49 |
fi |
|
50 |
|
|
46 | 51 |
if [ "$table_type" == "gpt" ]; then |
47 | 52 |
"$SGDISK" --move-second-header "$SNF_IMAGE_DEV" |
48 | 53 |
elif [ "$table_type" != "msdos" ]; then |
49 |
log_error "Device: \'${SNF_IMAGE_DEV}' contains unsupported partition " |
|
50 |
"table type: \`$table_type'. Only msdos & gpt partitions are supported." |
|
54 |
log_error "Device: \'${SNF_IMAGE_DEV}' contains unsupported partition " \
|
|
55 |
"table type: \`$table_type'. Only msdos & gpt partitions are supported."
|
|
51 | 56 |
fi |
52 | 57 |
|
53 | 58 |
last_part=$(get_last_partition "$table") |
Also available in: Unified diff