Ignore EPERM when modifying kern.geom.debugflags
authorColin Watson <cjwatson@ubuntu.com>
Fri, 17 Jan 2014 02:28:46 +0000 (02:28 +0000)
committerColin Watson <cjwatson@ubuntu.com>
Sun, 19 Jan 2014 14:38:07 +0000 (14:38 +0000)
commit049f63824c654ca10dc9073decc139ccd2f9a06b
treed576bc94b0e88d378ee1c5efca93d99a954b6a1c
parent015045471ed815fc45ba9fba52cb34582d129a96
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.
ChangeLog
grub-core/osdep/freebsd/hostdisk.c