nixos/grub: Fix regex for getting subvolume name in btrfs

This commit is contained in:
William A. Kennington III 2014-05-02 01:46:07 -05:00
parent 6549bcff96
commit c02bc3a9de

View file

@ -139,7 +139,7 @@ sub GrubFs {
if ($status != 0) {
die "Failed to retreive subvolume info for @{[$fs->device]}";
}
my @subvols = join("", @info) =~ m/Name:[ \t\n]([^ \t\n]*)/;
my @subvols = join("", @info) =~ m/Name:[ \t\n]*([^ \t\n]*)/;
if ($#subvols > 0) {
die "Btrfs subvol name for @{[$fs->device]} listed multiple times in mount\n"
} elsif ($#subvols == 0) {