mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
nixos/btrfs: Fix parsing of btrfs subvolume show
with btrfsprogs 4.1
This commit is contained in:
parent
b028c14256
commit
08ff83eab3
2 changed files with 2 additions and 2 deletions
|
@ -186,7 +186,7 @@ sub GrubFs {
|
|||
if ($status != 0) {
|
||||
die "Failed to retrieve subvolume info for @{[$fs->mount]}\n";
|
||||
}
|
||||
my @ids = join("", @id_info) =~ m/Object ID:[ \t\n]*([^ \t\n]*)/;
|
||||
my @ids = join("", @id_info) =~ m/Subvolume ID:[ \t\n]*([^ \t\n]*)/;
|
||||
if ($#ids > 0) {
|
||||
die "Btrfs subvol name for @{[$fs->device]} listed multiple times in mount\n"
|
||||
} elsif ($#ids == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue