Re: building memstick without root

From: Brooks Davis <brooks_at_freebsd.org>
Date: Mon, 22 Apr 2024 16:25:25 UTC
On Sun, Apr 21, 2024 at 07:45:22PM +0100, Lexi Winter wrote:
> hello,
> 
> is it expected that running 'make -C release memstick' requires root?
> the build fails for me with:
> 
> install: /src/obj/src/freebsd/src/main/riscv.riscv64/release/dist/kernel/boot/kernel/kernel: chown/chgrp: Operation not permitted
> 
> as i understand it, makefs should be able to build images as a non-root
> user using mtree, but i'm not sure if this is hooked up to the build
> system, or if i'm doing something else wrong - maybe i need a
> make.conf/src.conf option set?

You'll need to define NO_ROOT.  I think that's sufficent, but I'm not
100% certain.  We build CheriBSD releases without root on Linux hosts.

-- Brooks