summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtools/virt-make-fs8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/virt-make-fs b/tools/virt-make-fs
index a4da3f22..0cb2a10a 100755
--- a/tools/virt-make-fs
+++ b/tools/virt-make-fs
@@ -438,8 +438,12 @@ eval {
# Set the partition type byte if it's MBR and the filesystem
# type is one that we know about.
my $mbr_id;
- if ($partition eq "mbr") {
- if ($type =~ /^v?fat$/) {
+ if ($partition eq "mbr" || $partition eq "msdos") {
+ if ($type eq "msdos") {
+ # According to Wikipedia. However I have not actually
+ # tried this.
+ $mbr_id = 0x1;
+ } elsif ($type =~ /^v?fat$/) {
$mbr_id = 0xb;
} elsif ($type eq "ntfs") {
$mbr_id = 0x7;