Kickstart confusion
Mike McGrath
mmcgrath at iesabroad.org
Thu Jun 16 14:34:22 UTC 2005
> -----Original Message-----
> From: fedora-list-bounces at redhat.com
> [mailto:fedora-list-bounces at redhat.com] On Behalf Of Neil Marjoram
> Sent: Thursday, June 16, 2005 9:08 AM
> To: For users of Fedora Core releases
> Subject: Re: Kickstart confusion
>
> Mike,
>
> sorry, no output, nothing in the logs
>
> Neil.
>
> Mike McGrath wrote:
>
> >
> >
> >
> >
> >>-----Original Message-----
> >>From: fedora-list-bounces at redhat.com
> >>[mailto:fedora-list-bounces at redhat.com] On Behalf Of Neil Marjoram
> >>Sent: Thursday, June 16, 2005 6:53 AM
> >>To: For users of Fedora Core releases
> >>Subject: Kickstart confusion
> >>
> >>I am trying to run some post install commands with a kickstart
> >>installation, but some of them don't work;
> >>
> >>%post
> >>/sbin/chkconfig --levels 2345 isdn off -WORKS
> >>/sbin/chkconfig --levels 2345 pcmcia off - WORKS /sbin/chkconfig
> >>--levels 2345 ypbind off - WORKS /sbin/chkconfig --levels
> 2345 ntpd on
> >>- WORKS mkdir /mnt/install -WORKS mount -t nfs
> >>128.40.159.53:/export/ftp /mnt/install - WORKS rpm -ivh
> >>/mnt/install/os/packages/apt* - WORKS rpm -ivh
> >>/mnt/install/os/packages/webmin* - WORKS rpm -ivh
> >>/mnt/install/os/kernel/kernel-2.6*- DOES NOT WORK rpm -ivh
> >>/mnt/install/os/kernel/kernel-smp*- DOES NOT WORK rpm -ivh
> >>/mnt/install/os/kernel/kernel-utils*- DOES NOT WORK rpm --import
> >>/mnt/install/os/packages/RPM* - WORKS rpm --import
> >>/usr/share/rhn/RPM-GPG-KEY - WORKS cp -a --reply=yes
> >>/mnt/install/os/configs/* /mnt/sysimage/etc - DOES NOT WORK ntpdate
> >>a.server.co.uk - WORKS service autofs restart - WORKS service ntpd
> >>restart - WORKS apt-get -y update - WORKS apt-get -y upgrade - WORKS
> >>
> >>The kernel install I think I understand, but the copy
> command I don't.
> >>The syntax is correct, but I think it may be something to
> do with the
> >>chroot environment, the manual suggests running with %post
> --nochroot,
> >>but if I do this nothing works at all.
> >>
> >>I assume I have done something really stupid which I just
> can't see.
> >>Can anyone tell me where I have gone wrong.
> >>
> >>Thanks,
> >>
> >>Neil.
> >>
> >>--
> >>Neil Marjoram
> >>Systems Manager
> >>Adastral Park Campus
> >>University College London
> >>Ross Building
> >>Adastral Park
> >>Martlesham Heath
> >>Ipswich - Suffolk
> >>IP5 3RE
> >>
> >>
> >>Reclaim Your Inbox!
> >>http://www.mozilla.org/products/thunderbird
> >>
> >>--
> >>fedora-list mailing list
> >>fedora-list at redhat.com
> >>To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
> >>
> >>
> >>
> >>
> >
> >Do the failed commands show any output? If so what is the output?
> >
> > -Mike
> >
> >
> >
> >
>
> --
> Neil Marjoram
> Systems Manager
> Adastral Park Campus
> University College London
> Ross Building
> Adastral Park
> Martlesham Heath
> Ipswich - Suffolk
> IP5 3RE
>
> Tel: 01473 663711
> Fax: 01473 635199
>
>
> Reclaim Your Inbox!
> http://www.mozilla.org/products/thunderbird
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
>
>
Is there also nothing on the logging on tty2? (alt+f2 during the post
installation?) If its failing quickly you might want to add a sleep(60)
or something at the end so you can read it. On a side note, all
commands in post should be done relative to the newly installed
operating system. When copying things to /etc you should just reference
"/etc" not "/mnt/sysimage/etc"
-Mike
More information about the fedora-list
mailing list