Bug 1372284

Summary: Syntax error in kickstart kills anaconda but is not getting logged or shown
Product: Red Hat Enterprise Linux 8 Reporter: Fabian Deutsch <fdeutsch>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED CURRENTRELEASE QA Contact: Release Test Team <release-test-team>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.0CC: sbueno
Target Milestone: rc   
Target Release: 8.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-09 15:36:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Error which is only shown when anaconda is launched manually from bash none

Description Fabian Deutsch 2016-09-01 10:30:16 UTC
Created attachment 1196695 [details]
Error which is only shown when anaconda is launched manually from bash

Description of problem:
If there is a kickstart passed to anaconda using inst.ks, and this kickstart contains a syntax error, then anaconda will silently quit, this means a) it does not appear on screen b) it does not log this failure

Version-Release number of selected component (if applicable):
RHEL 7.2

How reproducible:
always

Steps to Reproduce:
1. 
2.
3.

Actual results:


Expected results:


Additional info:
Kickstart:

    install
    lang en_US.UTF-8
    keyboard us
    rootpw  --plaintext …
    timezone --utc …
    #rootpw  --iscrypted …
    sshpw --username=root …
    selinux --permissive
    ######################################################################
    #ignoredisk --drives=/dev/disk/by-path/pci-*-fc-*
    %include /tmp/ignoredisk.ks
    %pre
    echo "# Ignore FC drives if present" > /tmp/ignoredisk.ks  
…
    %end
    ######################################################################
    # partitioning - nuke and start fresh
    echo "1" >> /tmp/debug
    zerombr

    bootloader --location=mbr --append="intel_iommu=on"
     
    reboot
    liveimg --url=http://…/RHVH/latest-squashfs
     
    firewall --service=ssh
    services --enabled=sshd
     
    %post --log=/root/ks.post.log
    set -x
    echo "RUNNING: /usr/sbin/imgbase -------"
…
    %end

Comment 1 Sandro Bonazzola 2019-07-02 13:09:33 UTC
Didn't make it in RHEL 7, moving out to RHEL 8

Comment 2 Samantha N. Bueno 2020-09-09 15:36:27 UTC
This should be fixed now.