diff mbox series

[isar-cip-core,09/11] Set the profile for KernelCI

Message ID 20211115161724.19516-10-alice.ferrazzi@miraclelinux.com (mailing list archive)
State New
Headers show
Series cip-core-image-kernelci | expand

Commit Message

Alice Ferrazzi Nov. 15, 2021, 4:17 p.m. UTC
This profile is need for make KernelCI recognize that we have 
successfully effectuated the log in.

Signed-off-by: Alice Ferrazzi <alice.ferrazzi@miraclelinux.com>
---
 recipes-core/kernelci-customizations/files/postinst | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/recipes-core/kernelci-customizations/files/postinst b/recipes-core/kernelci-customizations/files/postinst
index 68ef9d3..7ae30e8 100644
--- a/recipes-core/kernelci-customizations/files/postinst
+++ b/recipes-core/kernelci-customizations/files/postinst
@@ -25,6 +25,10 @@  echo "[Service]" > /etc/systemd/system/serial-getty@.service.d/override.conf
 echo "ExecStart=" >> /etc/systemd/system/serial-getty@.service.d/override.conf
 echo "ExecStart=-/sbin/agetty --autologin root --keep-baud 115200,38400,9600 %I $TERM" >> /etc/systemd/system/serial-getty@.service.d/override.conf
 
+# set the profile for KernelCI
+echo "PS1='\$(pwd) # '" > /root/.profile
+echo "cd /" >> /root/.profile
+
 HOSTNAME=demo
 echo "$HOSTNAME" > /etc/hostname
 echo "127.0.0.1 $HOSTNAME" >> /etc/hosts