Is it possible to set the installation display mode with the use of an %include and %pre?

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

 



Is it possible to set the installation display mode with the use of an %include 
command and accompanying commands in the %pre section?

I would like to choose to perform the install in either 'text' or 'graphical' 
mode depending upon the system hardware.

My attempts to do this so far have failed and it appears that the installation 
display mode, which defaults to graphical as you'd know, cannot be set in the 
manner that I have described.

I have the following %include at the top of my kickstart file:

%include /tmp/ks-display-mode

....and in my %pre section I have:

%pre
#--- If the system arch is x86_64 and it contains a Silicon Motion, Inc. SM712 
LynxEM+ video adapter then set the install mode to text, otherwise set it to 
graphical.
echo "graphical" > /tmp/ks-display-mode
if [ "$(uname -i)" = "x86_64" ] ; then
    if $(lspci | grep -q "VGA compatible controller: Silicon Motion, Inc. SM712 
LynxEM+") ; then
        echo "text" > /tmp/ks-display-mode
    fi
fi

A quick check of the /tmp/ks-display-mode file during installation shows that 
the word 'text' is being written to the file.

Any suggestions?

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux