Cross-compile vim into stage3 chroot because I'm sick of nano :-)
[fedora-riscv.git] / init.sh
diff --git a/init.sh b/init.sh
index 4a105fc..eac9bd9 100755 (executable)
--- a/init.sh
+++ b/init.sh
@@ -21,6 +21,17 @@ date `date -r /usr/bin +%m%d%H%M%Y`
 hostname stage3
 echo stage3.fedoraproject.org > /etc/hostname
 
+# Set up the PATH.  The GCC path is a hack because I wasn't able to
+# find the right flags for configuring GCC.
+PATH=/usr/libexec/gcc/riscv64-unknown-linux-gnu/6.1.0:\
+/usr/local/bin:\
+/usr/local/sbin:\
+/usr/bin:\
+/usr/sbin:\
+/bin:\
+/sbin
+export PATH
+
 echo
 echo "Welcome to the Fedora/RISC-V stage3 disk image"
 echo "https://fedoraproject.org/wiki/Architectures/RISC-V"