From 24b7979ea25cbe5f08494cc4580c1341e78e090e Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 16 Jul 2012 16:26:26 +0100 Subject: virt-make-fs: Recognize "msdos" as a partition or filesystem type. Set MBR partition type byte accordingly. --- tools/virt-make-fs | 8 ++++++-- 1 file 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; -- cgit