mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 23:22:37 +02:00
hwaccess_x86_io: merge error message in rget_io_perms()
Have the same error message on all platforms. Change-Id: I7aae096deedd9b78f5fd38a73390cd8a33528545 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/61966 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
parent
9212ee2191
commit
60005a88ea
@ -62,13 +62,10 @@ int rget_io_perms(void)
|
||||
#endif
|
||||
msg_perr("ERROR: Could not get I/O privileges (%s).\n", strerror(errno));
|
||||
msg_perr("You need to be root.\n");
|
||||
#if defined (__OpenBSD__)
|
||||
msg_perr("If you are root already please set securelevel=-1 in /etc/rc.securelevel and\n"
|
||||
msg_perr("On OpenBSD set securelevel=-1 in /etc/rc.securelevel and\n"
|
||||
"reboot, or reboot into single user mode.\n");
|
||||
#elif defined(__NetBSD__)
|
||||
msg_perr("If you are root already please reboot into single user mode or make sure\n"
|
||||
msg_perr("On NetBSD reboot into single user mode or make sure\n"
|
||||
"that your kernel configuration has the option INSECURE enabled.\n");
|
||||
#endif
|
||||
return 1;
|
||||
} else {
|
||||
register_shutdown(release_io_perms, NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user