forked from mirrors/nixpkgs
nixos/grub: Fix regex for getting subvolume name in btrfs
This commit is contained in:
parent
6549bcff96
commit
c02bc3a9de
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue