git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/btrfs: Fix parsing of `btrfs subvolume show` with btrfsprogs 4.1
commit08ff83eab3ade9c923e36f03bc09d297bbe5e9f3 authorWilliam A. Kennington III <william@wkennington.com> dateTue 7 Jul 2015, 11:34 (11 years ago) parentb028c14
2 files changed+2−2
nixos/modules/installer/tools/nixos-generate-config.pl+1−1 nixos/modules/system/boot/loader/grub/install-grub.pl+1−1
nixos/modules/installer/tools/nixos-generate-config.pl+1−1
@@ -354,7 +354,7 @@ EOF
354354 if ($status != 0 || join("", @msg) =~ /ERROR:/) {
355355 die "Failed to retrieve subvolume info for $mountPoint\n";
356356 }
357− my @ids = join("", @id_info) =~ m/Object ID:[ \t\n]*([^ \t\n]*)/;
357+ my @ids = join("", @id_info) =~ m/Subvolume ID:[ \t\n]*([^ \t\n]*)/;
358358 if ($#ids > 0) {
359359 die "Btrfs subvol name for $mountPoint listed multiple times in mount\n"
360360 } elsif ($#ids == 0) {
nixos/modules/system/boot/loader/grub/install-grub.pl+1−1
@@ -186,7 +186,7 @@ sub GrubFs {
186186 if ($status != 0) {
187187 die "Failed to retrieve subvolume info for @{[$fs->mount]}\n";
188188 }
189− my @ids = join("", @id_info) =~ m/Object ID:[ \t\n]*([^ \t\n]*)/;
189+ my @ids = join("", @id_info) =~ m/Subvolume ID:[ \t\n]*([^ \t\n]*)/;
190190 if ($#ids > 0) {
191191 die "Btrfs subvol name for @{[$fs->device]} listed multiple times in mount\n"
192192 } elsif ($#ids == 0) {