Re: Can't get files to %include

ayaz pathaan <[email protected]>
Newsgroups gmane.linux.redhat.kickstart.general
Message-ID <CALqxFjC-F6Z=m1wYF-cz5aHNNsExt0beSb2=Zu3f+isEFBsT1w@mail.gmail.com>
Dear All,

I am not able to get ssh of a remote server . How will i get the console of
the server. ( ssh is not working and vnc is also not allowed .) . What is
the otherway you can access the server ?

Please give the answer is very argent

regards,
Ayaz Khan

On Fri, Apr 20, 2012 at 2:27 PM, Michael Hayes M <
[email protected]> wrote:

> Hi John,
>
> Adrian is correct in saying that you need to specify anything in the pre
> section, because it's then that anything can be set.
>
> If you put something into /tmp in the pre section, then before the pre
> section ends, copy it to /mnt/sysimage/tmp and then once in the post
> section, it will be in /tmp and available for you use.
> Basically, /tmp from the pre section is no longer available in the post
> section (but it is available in a post section if you specify --nochroot).
> What was in /mnt/sysimage/tmp is now in /tmp in the post section
>
> Cheers
>
> Mike
>
>
>
> -----Original Message-----
> From: John Oliver [mailto:[email protected]]
> Sent: 19 April 2012 15:05
> To: Discussion list about Kickstart
> Subject: Re: Can't get files to %include
>
> On Thu, Apr 19, 2012 at 12:56:50PM +0300, Adrian Cruceru wrote:
> > Hi John,
> >
> > I think you should do all processing regarding %include in %pre,
> > anything in %post is too late to change %include statements (system is
> > already installed).
> >
> > Regards,
> > Adrian
> >
> > On 04/17/2012 03:49 PM, John Oliver wrote:
> > >RHEL 5.4  In %pre, I can %include /mnt/source/isolinux/setup-questions
> > >But if I first copy setup-questions to /tmp/ks-files/, I can no longer
> > >include it.  Nor do my %include statements in %post for files I copied
> > >to /tmp/ks-files/ work.  What's the deal?  How the heck do I get
> > >includes to work???
>
> Hi, Adrian.  I'm not sure what you mean by "it's too late"... it's an
> include.  I can't include something in %pre that must be done in %post
>
> And that doesn't explain why %include
> /mnt/source/isolinux/setup-questions works, but copying setup-questions
> to /tmp/ and then %include /tmp/setup-questions does not, even though
> /tmp/setup-questions exists, is readable, and contains the exact same
> code that works just fine when included from the DVD.
>
> I have several kickstarts, and chunks of code that are common to all of
> them.  I want to have those common chunks in one place, so when I need
> to make a change, I make it in one place and the change will
> automatically be seen by all kickstarts.  Just in case there's a
> question of terminology here.
>
>
> Thanks.
>
> --
> ***********************************************************************
> * John Oliver                             http://www.john-oliver.net/ *
> *                                                                     *
> ***********************************************************************
>
>
>
> _______________________________________________
> Kickstart-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/kickstart-list
>



-- 
AyazPathan

_______________________________________________
Kickstart-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/kickstart-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.