mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
Making the grub menu builder take a better path at distinguishing if / and /boot are different fs.
I chose %D over %d because I like hex more. svn path=/nixos/trunk/; revision=22294
This commit is contained in:
parent
d0fd8da8f0
commit
fbb3046a87
@ -30,7 +30,7 @@ esac
|
||||
# the GRUB config file must be relative to the root of the /boot
|
||||
# filesystem. `$bootRoot' is the path to be prepended to paths under
|
||||
# /boot.
|
||||
if [ "$(stat -f -c '%i' /)" = "$(stat -f -c '%i' /boot)" ]; then
|
||||
if [ "$(stat -f -c '%D' /)" = "$(stat -f -c '%D' /boot)" ]; then
|
||||
bootRoot=/boot
|
||||
copyKernels="@copyKernels@" # user can override in the NixOS config
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user