Skip to content

Commit

Permalink
virt-make-fs: When writing vfat, add utf8 option to mount (RHBZ#823885).
Browse files Browse the repository at this point in the history
  • Loading branch information
rwmjones committed May 24, 2012
1 parent 975a41d commit d5d9cee
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tools/virt-make-fs
Expand Up @@ -472,7 +472,16 @@ eval {
} else {
$g->mkfs_btrfs ([$dev], datatype => "single", metadata => "single");
}
$g->mount ($dev, "/");

# Mount it.

# For vfat, add the utf8 mount option because we want to be able
# to encode any non-ASCII characters into UCS2 which is what
# modern vfat uses on disk (RHBZ#823885).
my $options = "";
$options = "utf8" if $type eq "vfat";

$g->mount_options ($options, $dev, "/");

# Copy the data in.
my $ifile;
Expand Down

0 comments on commit d5d9cee

Please sign in to comment.