simple pre script for user input

Kyle Powell kpowell at redhat.com
Thu Nov 20 16:40:44 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Glenn Bailey wrote:
> Playing around with a %pre script for user input, and while this works fine
> in a normal shell, after I enter an IP it just hangs there and I have to hit
> alt-f2 and kill the process before it moves forward .. Anyway ideas? Like I
> said this works fine in a normal shell:

Your script works fine for me. When you say "after I enter an IP it just hangs
there" I assume that means you don't see "You entered: $CONSOLEIP" after you
press enter? I would think this means the "read CONSOLEIP" is not using tty3 for
STDIN. What's the name of the process you're killing? I'm guessing it's
something like "ks-script-KLscIP". What's the state of the process when you kill
it? S+? Get the process' PID and check what STDIN (fd 0) is pointed at:

sh-3.1# ps a | grep ks-script
  397 tty1     S+     0:00 /bin/sh /tmp/ks-script-KLscIP

sh-3.1# ls -l /proc/397/fd/0
lr-x------ 1 root 0 64 Nov 20 16:26 /proc/397/fd/0 -> /dev/tty3

Does it say /dev/tty3? What distro/ver/release/arch are you kickstarting? I
tested your script with a RHEL 5.1 x86_64 kickstart.
- --
Kyle Powell | Red Hat | Senior Consultant, RHCE
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFJJZML7pTtanQdBU4RAs42AJ9II6Te4uQJkJJgAbNFOj7B2/mMdwCeI4Sf
OrXhrkYNvBXxQoKm1eM+igo=
=Qb4Z
-----END PGP SIGNATURE-----




More information about the Kickstart-list mailing list