freebsd-ports/sysutils/grub2/files/patch-util-getroot.c
Sergey Matveychuk a8cca1535f A new port: sysutils/grub
GNU GRUB is a multiboot boot loader.  It was derived from GRUB, the GRand
 Unified Bootloader, which was originally designed and implemented by Erich
 Stefan Boleyn.
2010-06-11 11:06:20 +00:00

11 lines
343 B
C

--- util/getroot.c.orig 2010-06-11 10:37:54.000000000 +0400
+++ util/getroot.c 2010-06-11 10:38:31.000000000 +0400
@@ -454,7 +454,7 @@
#else
/* This might be truly slow, but is there any better way? */
- os_dev = find_root_device ("/dev", st.st_dev);
+ os_dev = find_root_device ("/dev", st.st_rdev);
#endif
#endif /* !__GNU__ */