Re: Kickstart post install config

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

 



You will probably need to ensure that an exact copy of the script you are running is in the same relative location in teh chrooted environment otherwise the computer wont know what command to execute next as the script can no longer be found.

the script will also need to be an exact copy, not just a file with the same name as the shell interpreter will be looking for an exact line/byte count as to where to find the next instruction out of the script.

--
Steve.

On Fri, 6 Aug 2004, Anoop Bhat wrote:

hello,

I am attempting to write the post-install script on my kickstart config file
and so far it has been good.

I am currently running it in a nonchrooted environment (ie i have to use
/mnt/sysimage) but I would like to be able to execute some commands outside
the chroot and then manually chroot to /mnt/sysimage and execute the rest of
my script.

So far I've tried /usr/bin/chroot /usr/sbin/chroot and just chroot all with
just /mnt/sysimage as the new root.

Everytime the post-install gets to this part, it just hangs forever. Prior
to trying the chroot, the script copies files from /tmp and moves them to
the sysimage which work perfectly and I have verified this. Its just the
chroot that hangs and then I have to break the script or reboot it and it
boots up normally but it does not perform any of the commands after the
chroot which lead me to believe that its hung.

Any ideas on what i'm doing wrong? should i only stick to --nochroot or
chroot it and forget about it or has anyone else successfully been able to
begin in --nochroot and then chroot /mnt/sysimage?

thanks

-Anoop



--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux