From ad06aab0a4886d0a4710ca286a8d82f2ef98c973 Mon Sep 17 00:00:00 2001 From: Salt Date: Sun, 29 Nov 2020 21:51:29 -0600 Subject: [PATCH] At some point I'll get this right --- gentoostrap.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gentoostrap.sh b/gentoostrap.sh index 5da6fc6..54be0c5 100755 --- a/gentoostrap.sh +++ b/gentoostrap.sh @@ -127,7 +127,8 @@ build-gentoo() { # Now we need to pivot into a chroot and finish configuration natively # Buuuut... since we're using systemd, we get to just spawn a systemd-nspawn container popd - sudo systemd-nspawn --directory="$_optdest" "$0 -c" + cp "$0" "$_optdest/gentoostrap.sh" + sudo systemd-nspawn --directory="$_optdest" /gentoostrap.sh -c } build-gentoo-chroot() { # Build Gentoo, but from within the chroot environment