try aliasing proot in place of chroot? idk if this will work
Some checks failed
ci/woodpecker/manual/woodpecker Pipeline failed

This commit is contained in:
Mark Riedesel 2024-11-18 12:18:09 -06:00
parent db74ec4ba7
commit 02c9cb8247

View file

@ -26,6 +26,13 @@ function install_archiso {
fi
}
function install_proot {
if ! type proot >/dev/null 2>&1; then
curl -L https://proot.gitlab.io/proot/bin/proot -O /usr/local/bin/proot
chmod +x /usr/local/bin/proot
fi
}
function prepare {
install_archiso
[ -d "$build_dir" ] && as_root rm -rf "$build_dir"
@ -79,6 +86,7 @@ function pubkey_config {
function build_iso {
temp_dir=$(as_root mktemp -d)
alias chroot=proot
as_root chmod 755 "$temp_dir"
as_root mkarchiso -v -w "$temp_dir/archiso" -o "$build_dir"/out "$build_dir" && echo "ISO build complete"
as_root rm -rf "$temp_dir"