%post questions

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

 



I have a few questions about kickstarting from my bootdisk, and
apologise in advance if any of these are incredibly stupid:

I have some commands that I want to run after the install in the %post
section, do they need to be prefixed with #! /bin/sh ?? They're mostly
along the lines of 

echo "turning off services..."
chkconfig --level 345 sendmail off
chkconfig --level 345 nfs off
chkconfig --level 345 lpd off
echo "sendmail, nfs and lpd are off for runlevels 3, 4 and 5."

etc.should I have it start off with:
%post -nochroot
#! /bin/sh 
or is the #! /bin/sh line not needed?

Can I do an init into single user mode so that the user doesn't need to
su to root before the %post script runs? Or is there any way to make it
run as root?






[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