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: packages:
- name: "kairos-overlay-files" - name: "kairos-overlay-files"
category: "static" category: "static"
version: "1.1.3" version: "1.1.4"

View File

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