live-bootstrap icon indicating copy to clipboard operation
live-bootstrap copied to clipboard

Add small bubblewrap like program as a build step

Open MaxHearnden opened this issue 1 year ago • 5 comments

This allow the user to perform a rootless build without bubblewrap on machines with user namespaces enabled

MaxHearnden avatar Nov 28 '23 05:11 MaxHearnden

I understand the idea/implementation in principle. Would you mind outlining any particular, specific usecases for this?

fosslinux avatar Nov 28 '23 05:11 fosslinux

It's to reduce the binary seed required for an unprivileged build to just hex0+kaem-optional and can be used with the following commands

cp sysa/stage0-posix/src/* .
cp sysa/after_wrap.kaem after.kaem

# This stage could be integrated into after_wrap.kaem
echo "CHROOT=True
CHROOT_WRAP=True" >> sysa/bootstrap.cfg

./bootstrap-seeds/POSIX/x86/kaem-optional-seed

MaxHearnden avatar Nov 28 '23 16:11 MaxHearnden

I like it but 2 minor details:

  1. the syscalls should added to M2libc such that the code becomes more standard C.
  2. the wrap.c program belongs in mescc-tools-extra which live-bootstrap does already use and will allow other bootstrapping projects to leverage your work.

great work

oriansj avatar Nov 29 '23 23:11 oriansj

If this could be

  1. rebased on master
  2. updated to reflect that wrap.c is in mescc-tools-extra

I think I'm happy to include this in principle.

fosslinux avatar Dec 26 '23 05:12 fosslinux

#436 will bring in wrap.c into live-bootstrap, although currently unused

Googulator avatar Feb 09 '24 09:02 Googulator