Re: post install errors on kickstart from cdrom

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

 



shaib@xxxxxxxx said:
> I have copy commands, ln commands etc which are done on files from the newly
> installed system, and it seems that the files are not found. also commands
> like useradd, usermod and chkconfig fail. I tried to work with %post
> --nochroot, add /mnt/sysimage to the file paths and write the command with
> full paths like /bin/cp etc - nothing helps. I believe it connects somehow to
> the shell environment being used in the post install, but can't figure it out.
>  Any help would be appreciated.

If you're using '%post --nochroot' you can try the following.

Once the install is finished and you get the screen with the Exit button, 
switch to terminal 2 (ctl-alt-f2). This assumes that you don't set the --reboot 
command in your ks.cfg.

At the '#' prompt type in the postinstall commands exactly as they appear in 
your ks.cfg. I found it easier to debug this if I put all my postinstall 
commands in a bash script and then called:

    bash /mnt/source/postinstall/post.sh 

Then I could put in 'set -x' statements as necessary for debugging, redirect 
output to log files, etc. 

You might also find useful output on the syslog terminal (3 or 4, I forget 
which).

HTH,

Chris





[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