RE: how determine if kickstarting a virtual host?

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

 



Use dmidecode in the %pre (or %post)

Example, if this is Vmware, the following works:

dmidecode | grep Manufacturer | head -1 | grep VMware
if [ $? = 0 ] ; then
	do whatever for vms
else
	do whatever not for vms
fi


-----Original Message-----
From: kickstart-list-bounces@xxxxxxxxxx
[mailto:kickstart-list-bounces@xxxxxxxxxx] On Behalf Of Terry McIntyre
Sent: Wednesday, October 28, 2009 2:59 PM
To: kickstart-list@xxxxxxxxxx
Subject: how determine if kickstarting a virtual host?

I'd like to have kickstart.ks behave differently when running on a
virtual host.

For example, it makes little sense to start the microcode_ctl service
on a virtual host; that would be taken care of by the "real" server.

How can I reliably detect this?

Thanks!

-- 
Terry McIntyre
terry.mcintyre@xxxxxxxxx

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

_______________________________________________
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