Add /init script to the stage3 disk.
[fedora-riscv.git] / init.sh
diff --git a/init.sh b/init.sh
new file mode 100755 (executable)
index 0000000..f619f30
--- /dev/null
+++ b/init.sh
@@ -0,0 +1,17 @@
+#!/bin/bash -
+# Init script installed in stage3 disk image.
+
+echo
+echo "Welcome to the Fedora/RISC-V stage3 disk image"
+echo "https://fedoraproject.org/wiki/Architectures/RISC-V"
+echo
+
+PS1='stage3:\w\$ '
+export PS1
+
+# Run bash.
+bash -i
+
+# Sync disks and shut down.
+sync
+poweroff