nixos/grub: Fix regex for getting subvolume name in btrfs
This commit is contained in:
@@ -139,7 +139,7 @@ sub GrubFs {
|
|||||||
if ($status != 0) {
|
if ($status != 0) {
|
||||||
die "Failed to retreive subvolume info for @{[$fs->device]}";
|
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) {
|
if ($#subvols > 0) {
|
||||||
die "Btrfs subvol name for @{[$fs->device]} listed multiple times in mount\n"
|
die "Btrfs subvol name for @{[$fs->device]} listed multiple times in mount\n"
|
||||||
} elsif ($#subvols == 0) {
|
} elsif ($#subvols == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user