diff --git a/sysc/after.sh b/sysc/after.sh new file mode 100755 index 00000000..a8586b11 --- /dev/null +++ b/sysc/after.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +# SPDX-FileCopyrightText: 2022 Andrius Štikonas +# SPDX-License-Identifier: MIT + +# Replace this hook if you wish to do more + +exec env - PATH="${PREFIX}/bin" PS1="\w # " bash -i diff --git a/sysc/run2.sh b/sysc/run2.sh index 25f225db..7ac479fe 100755 --- a/sysc/run2.sh +++ b/sysc/run2.sh @@ -102,5 +102,6 @@ fi echo "Bootstrapping completed." -cd "${PREFIX}" -exec env - PATH="${PREFIX}/bin" PS1="\w # " bash -i +cd "/" + +exec env -i PATH="${PATH}" PREFIX="${PREFIX}" SOURCES="${SOURCES}" DESTDIR="${DESTDIR}" DISTFILES="${DISTFILES}" bash after.sh