Skip to content

Commit

Permalink
grub module: assume /nix/store is a bind mount even if it is not read…
Browse files Browse the repository at this point in the history
… only

Fixes #14999
  • Loading branch information
symphorien authored and fpletz committed Aug 31, 2017
1 parent dbba364 commit 90ef218
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/modules/system/boot/loader/grub/install-grub.pl
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ sub GetFs {
my $device = $fields[$n + 1];
my @superOptions = split /,/, $fields[$n + 2];

# Skip the read-only bind-mount on /nix/store.
next if $mountPoint eq "/nix/store" && (grep { $_ eq "rw" } @superOptions) && (grep { $_ eq "ro" } @mountOptions);
# Skip the bind-mount on /nix/store.
next if $mountPoint eq "/nix/store" && (grep { $_ eq "rw" } @superOptions);
# Skip mount point generated by systemd-efi-boot-generator?
next if $fsType eq "autofs";

Expand Down

0 comments on commit 90ef218

Please sign in to comment.