ci: Make sure that we have a proper shell prompt for LAVA.
[mesa.git] / .gitlab-ci / create-rootfs.sh
index 810924061fb3d2eb449ea40650bebf90d2d36a15..04441ee50d15b9fc8f05669adb0129e2e2be23ed 100644 (file)
@@ -20,7 +20,13 @@ apt-get -y install --no-install-recommends \
     $LLVM
 passwd root -d
 chsh -s /bin/sh
-ln -s /bin/sh /init
+
+cat > /init <<EOF
+#!/bin/sh
+export PS1=lava-shell:
+exec sh
+EOF
+chmod +x  /init
 
 #######################################################################
 # Strip the image to a small minimal system without removing the debian