git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/btrfs: Fix parsing of `btrfs subvolume show` with btrfsprogs 4.1
08ff83eWilliam A. Kennington III
nixos/modules/installer/tools/nixos-generate-config.pl+1−1
@@ -354,7 +354,7 @@ EOF
354 if ($status != 0 || join("", @msg) =~ /ERROR:/) {
354 if ($status != 0 || join("", @msg) =~ /ERROR:/) {
355 die "Failed to retrieve subvolume info for $mountPoint\n";
355 die "Failed to retrieve subvolume info for $mountPoint\n";
356 }
356 }
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]*)/;
358 if ($#ids > 0) {
358 if ($#ids > 0) {
359 die "Btrfs subvol name for $mountPoint listed multiple times in mount\n"
359 die "Btrfs subvol name for $mountPoint listed multiple times in mount\n"
360 } elsif ($#ids == 0) {
360 } elsif ($#ids == 0) {
nixos/modules/system/boot/loader/grub/install-grub.pl+1−1
@@ -186,7 +186,7 @@ sub GrubFs {
186 if ($status != 0) {
186 if ($status != 0) {
187 die "Failed to retrieve subvolume info for @{[$fs->mount]}\n";
187 die "Failed to retrieve subvolume info for @{[$fs->mount]}\n";
188 }
188 }
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]*)/;
190 if ($#ids > 0) {
190 if ($#ids > 0) {
191 die "Btrfs subvol name for @{[$fs->device]} listed multiple times in mount\n"
191 die "Btrfs subvol name for @{[$fs->device]} listed multiple times in mount\n"
192 } elsif ($#ids == 0) {
192 } elsif ($#ids == 0) {