mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 03:26:31 +01:00
Add minimal unprivileged bootstrap
This commit is contained in:
parent
1f272f9050
commit
f3828e44db
7 changed files with 66 additions and 10 deletions
19
seed/after-wrap.kaem
Normal file
19
seed/after-wrap.kaem
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: 2024 Max Hearnden maxoscarhearnden@gmail.com
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
set -ex
|
||||
|
||||
# detect wether we are in a rootfs.py environment
|
||||
if ./${ARCH_DIR}/bin/catm steps/env-saved steps/env; then
|
||||
./${ARCH_DIR}/bin/wrap /${ARCH_DIR}/bin/kaem --file after-wrapped.kaem
|
||||
else
|
||||
# leave seed/stage0-posix
|
||||
cd ../..
|
||||
|
||||
ARCH_DIR=seed/stage0-posix/${ARCH_DIR}
|
||||
|
||||
./${ARCH_DIR}/bin/wrap /${ARCH_DIR}/bin/kaem --file seed/after.kaem
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue