Adopt MI re-upgrade prevention
authorkn <kn@openbsd.org>
Fri, 20 Oct 2023 19:55:49 +0000 (19:55 +0000)
committerkn <kn@openbsd.org>
Fri, 20 Oct 2023 19:55:49 +0000 (19:55 +0000)
commitd807f41cc31248f3b16b002b1fbfbeea53bf0599
treed3c2cd94f901e7dbc7734d75f9c30cff973e8f9c
parent8a9ff49d785dfa0d133f66af715b210bca964cdb
Adopt MI re-upgrade prevention

In comparison to MI boot which only cares about /bsd.upgrade's x bit,
octeon rdboot just wants a regular file.

Require and strip u+x before execution to prevent sysupgrade(8) loops.

OK kettenis
sys/arch/octeon/stand/rdboot/cmd.c
sys/arch/octeon/stand/rdboot/rdboot.c