@@ -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
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(+)