[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: Getting post installation messages dumped on screen


Resending due to mailing list email address change - I'm sorry if this causes duplicates :)

It's probably being printed on tty5 but don't quote me on that. 
You can switch console screen by pressing CTRL+ALT+F1 (F1, F2, F3, etc...), one of them has your output!

I wrote a debug script a while back to allow me to poke around during the installation. 
The script starts an SSH server and switches the user terminal - installation will be halted until you exit the debug mode.

In my kickstart-pre.sh script I call the function using the following command, you can utilize it in your post script in the same way.
# Call debug script
/usr/bin/openvt -c 6 -s -l -w -f ${scriptPath}/debug-kickstart

Not sure if pasting a script in the mailing list is frowned upon but here goes:
# Title        : debug-kickstart
# Description  : Starts an SSH server and a user terminal for debugging during
#                a kickstart installation
# Author       : Firas AlShafei
# Notes        : - Script formatting is best viewed in SublimeText/Notepad++
#                - Must be called using openvt to enable user input
#                  ex. /usr/bin/openvt -c 6 -s -l -w -f debug-kickstart

### Enable SSH
# Copy default anaconda ssh config
cp /etc/ssh/sshd_config.anaconda /etc/ssh/sshd_config

# Create ssh keys
/bin/ssh-keygen -q -t rsa -N '' -f /etc/ssh/ssh_host_rsa_key    > /dev/null 2>&1
/bin/ssh-keygen -q -t dsa -N '' -f /etc/ssh/ssh_host_dsa_key    > /dev/null 2>&1

# Start ssh daemon

# Copy defualt profile
cp /.profile /tmp/

## Print debug banner
# Get IP Address
ipAddress=$(ifconfig eth0 | grep "inet addr:" | awk -F'[: ]+' '{print $4}') # Padding to maintain box dimensions padding=$(printf "%"$(( 44 - ${#ipAddress} ))"s" " ") clear echo -e '┌──────────────────────┤ ''\e[0;31mDebug Mode\e[0m'' ├──────────────────────┐'
echo -e "│                                                          │"
echo -e "│ An SSH server has been enabled                           │"
echo -e "│ IP Address : ${ipAddress}${padding}│"
echo -e "│ Username   : root                                        │"
echo -e "│ Password   : <blank>                                     │"
echo -e "│                                                          │"
echo -e "│ Issue the exit command to continue the installation      │"
echo -e "│                                                          │"
echo -e "└──────────────────────────────────────────────────────────┘"
/bin/bash -l

Best regards,
Firas AlShafei
Lead Engineer
Enterprise Software
1601 Industrial Blvd
Sugar Land, TX, 77478

-----Original Message-----
From: kickstart-list-bounces redhat com [mailto:kickstart-list-bounces redhat com] On Behalf Of shankha
Sent: Thursday, August 13, 2015 12:12 PM
To: kickstart-list redhat com
Subject: Getting post installation messages dumped on screen

I am printing some log messages post installation through configuration file kfs.cfg

%post --nochroot

echo "XYZ"

I do not see the message on terminal. Could you please let me know where this message is getting printed to.

Is there a way to dump it on stdout.


Kickstart-list mailing list
Kickstart-list redhat com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]