RE: post installation scripts

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

 



Are you sure that it is this code that is causing it to hang?  I know that
when I setup a machine to use NIS, and I add a user (beside root), it will
hang during the post installation for 10-15 minutes while it times out.
What led you to believe that it was this part of %post?

Forrest

> -----Original Message-----
> From: Peter Lewandowski [mailto:Peter.Lewandowski@xxxxxxxxx]
> Sent: Thursday, June 14, 2001 1:38 AM
> To: 'kickstart-list@xxxxxxxxxx'
> Subject: post installation scripts
> 
> 
> Hi,
> 
> I'm trying to copy some files on to the newly installed 
> redhat machine in
> the %post section of the kickstart file, but it all just 
> hangs! This is what
> I'm trying to do:
> 
> 
> %post --nochroot
> cp -p /mnt/source/extra/install.sh /mnt/sysimage/root
> 
> # root user should run the script at startup
> touch /mnt/sysimage/root/.unconfigured
> echo "if [ -f /root/.unconfigured ]; then " >> 
> /mnt/sysimage/root/.bashrc
> echo "  rm -f /root/.unconfigured" >>/mnt/sysimage/root/.bashrc
> echo "  exec /root/install.sh" >> /mnt/sysimage/root/.bashrc
> echo "  /usr/sbin/netcfg" >>  /mnt/sysimage/root/.bashrc
> echo "fi">>/mnt/sysimage/root/.bashrc
> 
> Does it matter where in the %post section I put this code?
> 
> Best Regards,
> 
> ________________________________
> Peter Lewandowski, M.Sc.Th
> CYGATE AB
> Software Engineer, Cygate Labs
> Box 749, Invernessvägen 2
> S-182 17 DANDERYD, SWEDEN
> Phone: + 46 8 630 51 92
> Mobile: + 46 70 690 61 51
> Web: www.cygategroup.com
> 
> 
> 
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list@xxxxxxxxxx
> https://listman.redhat.com/mailman/listinfo/kickstart-list
> 





[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