Re: Problems with %post script execution

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

 



On Wed, 31 Jul 2002, Chris Meisinger wrote:

> Okay here's the problem that I'm running into.   My kickstart works
> fine.  It installs everything properly, updated RPMs, etc.  in the %post
> section, it creates a script in /etc/rc.d/init.d/, symlinks it over in
> /etc/rc.d/rc3.d, and chmod +x's the script.
>
> It creates the script, but won't Chmod it or symlink it.  Anything after
> the echo statement of the script itself does not work.  I've attached
> the ks.cfg so you can check it out.
>
>
> =================
> Begin ks.cfg
> =================
>

<<<<<<<<<<<  stuff deleted  >>>>>>>>>>>

>
> #hook the post install script into RC.D so it'll actually run.
>
> chmod +x /etc/rc.d/init.d/ks-post-reboot
> ln -s /etc/rc.d/init.d/ks-post-reboot /etc/rc.d/rc3.d/S86ks-post-reboot
>

It's been my experience that you need to put the explicit path to the
program you're using in %post--there is no environment (PATH, etc.) so the
system can't find the programs.  Try:

  /bin/chmod +x /etc/rc.d/init.d/ks-post-reboot
  /bin/ln -s /etc/rc.d/init.d/ks-post-reboot /etc/rc.d/rc3.d/S86ks-post-reboot


Carl

Carl G. Riches
Software Engineer
Department of Mathematics
Box 354350			voice:     206-543-5082 or 206-616-3636
University of Washington	fax:       206-543-0397
Seattle, WA  98195-4350		internet:  riches@xxxxxxxxxxxxxxxxx





[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