Ignore EPERM when modifying kern.geom.debugflags
Many tests fail when run as a non-root user on FreeBSD. The failures all amount to an inability to open files using grub_util_fd_open, because we cannot set the kern.geom.debugflags sysctl. This sysctl is indeed important to allow us to do such things as installing GRUB to the MBR, but if we need to do that and can't then we will get an error later. Enforcing it here is unnecessary and prevents otherwise perfectly reasonable operations.
This commit is contained in:
parent
015045471e
commit
049f63824c
2 changed files with 17 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
2014-01-19 Colin Watson <cjwatson@ubuntu.com>
|
||||
|
||||
* grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
|
||||
EPERM when modifying kern.geom.debugflags. It is only a problem for
|
||||
such things as installing GRUB to the MBR, in which case there'll be
|
||||
an error later anyway, not for opening files during tests.
|
||||
|
||||
2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
|
||||
|
||||
* grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue