kickstart virtual terminal switching during %pre section

Issues related to applications and software problems
Post Reply
User avatar
Posts: 9
Joined: 2015/08/14 13:04:27

kickstart virtual terminal switching during %pre section

Post by l2g » 2016/10/11 20:49:38

In earlier versions of CentOS, you could have an interactive kickstart installation by just changing the virtual terminal using chvt; eg:

Code: Select all

# Change Virtual Terminal so we can get some input from the user
chvt 3
exec </dev/tty3 >/dev/tty3 2>/dev/tty3

echo "PRE INSTALL START: $(date)"

# write all your stuff here that requires input from stdin by the user

echo "PRE INSTALL FINISH: $(date)"
) 2>&1 | /usr/bin/tee /tmp/pre.install.log

# when you're done... easy-peasy
# Change Virtual Terminal back to GUI
chvt 6
This works beautifully in 6.x. With some slight tweaks, but otherwise works fantastic in CentOS 5.x too!

Just curious how you can accomplish this in CentOS 7 because the above does not work at all? :(

Post Reply

Return to “CentOS 7 - Software Support”