commit: c6ca548d5b81b9f0b51224b6a68282a0a0a10dba
parent fc0368aa6a45f2fa59379ebdfab659f0341a28e7
Author: Andrius Štikonas <andrius@stikonas.eu>
Date: Sat, 21 May 2022 00:50:27 +0100
Add after.sh hook to sysc (similarly to after.kaem hook in stage0-posix).
Diffstat:
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/sysc/after.sh b/sysc/after.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# SPDX-FileCopyrightText: 2022 Andrius Štikonas <andrius@stikonas.eu>
+# 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
@@ -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