Adopt MI re-upgrade prevention
authorkn <kn@openbsd.org>
Fri, 20 Oct 2023 19:58:16 +0000 (19:58 +0000)
committerkn <kn@openbsd.org>
Fri, 20 Oct 2023 19:58:16 +0000 (19:58 +0000)
commit3f0bb8e92bd22b3bfcb5c04d94d3a322bcd6eab7
tree8c2b59769594ee5e97f0b8adcc511ab638445d66
parentd807f41cc31248f3b16b002b1fbfbeea53bf0599
Adopt MI re-upgrade prevention

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

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

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