mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
nixos/grub: Fix spacing and correct subvolume detection
This commit is contained in:
parent
cc62623b37
commit
0f6079d999
@ -133,9 +133,9 @@ sub GrubFs {
|
||||
|
||||
# BTRFS is a special case in that we need to fix the referrenced path based on subvolumes
|
||||
if ($fs->type eq 'btrfs') {
|
||||
my ($status, @info) = runCommand("btrfs subvol show @{[$fs->device]}");
|
||||
my ($status, @info) = runCommand("btrfs subvol show @{[$fs->mount]}");
|
||||
if ($status != 0) {
|
||||
die "Failed to retreive subvolume info for @{[$fs->device]}";
|
||||
die "Failed to retreive subvolume info for @{[$fs->mount]}";
|
||||
}
|
||||
my @subvols = join("", @info) =~ m/Name:[ \t\n]*([^ \t\n]*)/;
|
||||
if ($#subvols > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user