CVSROOT:        /cvs
Module name:    src
Changes by:     k...@cvs.openbsd.org    2023/04/25 08:48:17

Modified files:
        sys/arch/i386/stand/boot: conf.c 
        sys/arch/i386/stand/cdboot: conf.c 
        sys/arch/i386/stand/libsa: biosdev.c 
        sys/arch/i386/stand/pxeboot: conf.c 

Log message:
Do not attempt to write to read-only softraid

Bootloaders have no write support for softraid volumes, which manifests in,
e.g. /bsd.upgrade not being stripped of its 'x' permission bit to prevent
sysupgrade loops in case of upgrade failure.

Set a no-write flag handled by libsa to bail out early in write calls.
There should be no real behaviour change, writes just fail earlier now.

i386 BIOS.  Crank minor.
Tested inside amd64 vmm.

Reply via email to