mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
nixos/grub: Fix regex for getting subvolume name in btrfs
This commit is contained in:
parent
6549bcff96
commit
c02bc3a9de
1 changed files with 1 additions and 1 deletions
|
@ -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