Dont break inittab completely (#496)

This commit is contained in:
Itxaka 2023-10-17 16:29:24 +02:00 committed by GitHub
parent eedc37677d
commit eb02e2ed7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
packages:
- name: "kairos-overlay-files"
category: "static"
version: "1.1.3"
version: "1.1.4"

View File

@ -28,8 +28,8 @@ stages:
content: |
You are booting from livecd mode. Run 'kairos-agent install' to install the system.
permissions: 0644
- path: /etc/inittab
content: |
tty1::respawn:/sbin/agetty --autologin root -i --noclear tty1
ttyS0::respawn:/sbin/agetty --autologin root -i --noclear ttyS0
permissions: 0644
commands:
- sed -i -e 's/tty1.*//g' /etc/inittab
- sed -i -e 's/ttyS0.*//g' /etc/inittab
- echo "tty1::respawn:/sbin/agetty --autologin root -i --noclear tty1" >> /etc/inittab
- echo "ttyS0::respawn:/sbin/agetty --autologin root -i --noclear ttyS0" >> /etc/inittab