Re: [PATCH lorax/master 7/7] remove dmidecode

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

 



On Wed, 2012-06-20 at 10:17 +0100, Moray Henderson wrote:

> I sometimes use dmidecode to do system-specific stuff in kickstart %post:
> 
>   if dmidecode -s system-manufacturer | grep -q VMware; then
>       chkconfig smartd off
>   fi
> 
> Is there an alternative way to do that sort of thing now?

Yes. The kernel exposes a bunch of the dmi info in /sys/class/dmi/id. 
This should be equivalent:

  if grep -q 'VMware' /sys/class/dmi/id/sys_vendor; then
      chkconfig smartd off
  fi

But NOTE: %post scripts run inside the *installed* system, not the
anaconda runtime, so it doesn't matter whether or not dmidecode is in
the anaconda runtime. As long as dmidecode is installed in your system
your %post scripts don't need to be changed.

-w

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux