RHEL Anaconda kickstart installer error message on terminal console with log and exit immediately
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
My kickstart script is like this:
%pre --log=/tmp/log
wget --no-check-certificate http://192.168.2.33/file
[ $? -eq 0 -a -f file ] && tar --ignore-failed-read -xzvf file
....
%end
wget command fails as the file is not available in the server. Now, I want the script to be stopped executing the installation any further and fails immediately when it sees any error with the corresponding error message showing up on the terminal screen
I stumbled upon this option --erroronfail
but it only shows the Python exception traceback calls in the console without the actual error string to show to the user why it is failed.
I have tried the following ways:
%pre --interpreter /bin/sh --log=/tmp/log --erroronfail
exec < /dev/tty3 > /dev/tty3
chvt 3
wget --no-check-certificate http://192.168.2.33/file
[ $? -eq 0 -a -f file ] && tar --ignore-failed-read -xzvf file
chvt 1
%end
and as below too
%pre --interpreter /bin/sh --log=/tmp/log --erroronfail
exec < /dev/tty3 > /dev/tty3
chvt 3
wget --no-check-certificate http://192.168.2.33/file 2>&1 | /usr/bin/tee -a /tmp/log
chvt 1
%end
Nothing gives me the expected result
shell-script rhel io-redirection anaconda
add a comment |Â
up vote
0
down vote
favorite
My kickstart script is like this:
%pre --log=/tmp/log
wget --no-check-certificate http://192.168.2.33/file
[ $? -eq 0 -a -f file ] && tar --ignore-failed-read -xzvf file
....
%end
wget command fails as the file is not available in the server. Now, I want the script to be stopped executing the installation any further and fails immediately when it sees any error with the corresponding error message showing up on the terminal screen
I stumbled upon this option --erroronfail
but it only shows the Python exception traceback calls in the console without the actual error string to show to the user why it is failed.
I have tried the following ways:
%pre --interpreter /bin/sh --log=/tmp/log --erroronfail
exec < /dev/tty3 > /dev/tty3
chvt 3
wget --no-check-certificate http://192.168.2.33/file
[ $? -eq 0 -a -f file ] && tar --ignore-failed-read -xzvf file
chvt 1
%end
and as below too
%pre --interpreter /bin/sh --log=/tmp/log --erroronfail
exec < /dev/tty3 > /dev/tty3
chvt 3
wget --no-check-certificate http://192.168.2.33/file 2>&1 | /usr/bin/tee -a /tmp/log
chvt 1
%end
Nothing gives me the expected result
shell-script rhel io-redirection anaconda
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
My kickstart script is like this:
%pre --log=/tmp/log
wget --no-check-certificate http://192.168.2.33/file
[ $? -eq 0 -a -f file ] && tar --ignore-failed-read -xzvf file
....
%end
wget command fails as the file is not available in the server. Now, I want the script to be stopped executing the installation any further and fails immediately when it sees any error with the corresponding error message showing up on the terminal screen
I stumbled upon this option --erroronfail
but it only shows the Python exception traceback calls in the console without the actual error string to show to the user why it is failed.
I have tried the following ways:
%pre --interpreter /bin/sh --log=/tmp/log --erroronfail
exec < /dev/tty3 > /dev/tty3
chvt 3
wget --no-check-certificate http://192.168.2.33/file
[ $? -eq 0 -a -f file ] && tar --ignore-failed-read -xzvf file
chvt 1
%end
and as below too
%pre --interpreter /bin/sh --log=/tmp/log --erroronfail
exec < /dev/tty3 > /dev/tty3
chvt 3
wget --no-check-certificate http://192.168.2.33/file 2>&1 | /usr/bin/tee -a /tmp/log
chvt 1
%end
Nothing gives me the expected result
shell-script rhel io-redirection anaconda
My kickstart script is like this:
%pre --log=/tmp/log
wget --no-check-certificate http://192.168.2.33/file
[ $? -eq 0 -a -f file ] && tar --ignore-failed-read -xzvf file
....
%end
wget command fails as the file is not available in the server. Now, I want the script to be stopped executing the installation any further and fails immediately when it sees any error with the corresponding error message showing up on the terminal screen
I stumbled upon this option --erroronfail
but it only shows the Python exception traceback calls in the console without the actual error string to show to the user why it is failed.
I have tried the following ways:
%pre --interpreter /bin/sh --log=/tmp/log --erroronfail
exec < /dev/tty3 > /dev/tty3
chvt 3
wget --no-check-certificate http://192.168.2.33/file
[ $? -eq 0 -a -f file ] && tar --ignore-failed-read -xzvf file
chvt 1
%end
and as below too
%pre --interpreter /bin/sh --log=/tmp/log --erroronfail
exec < /dev/tty3 > /dev/tty3
chvt 3
wget --no-check-certificate http://192.168.2.33/file 2>&1 | /usr/bin/tee -a /tmp/log
chvt 1
%end
Nothing gives me the expected result
shell-script rhel io-redirection anaconda
edited Jul 5 at 7:25
asked Jul 3 at 13:48
Ibrahim Quraish
1419
1419
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f453228%2frhel-anaconda-kickstart-installer-error-message-on-terminal-console-with-log-and%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password