From: Alan McKay alan.mc...@gmail.com
I thought of that but I don't want to mess up what I already have
working with manipulating files in /etc
But at least I can try it to see if this much works
It did mess up all my /etc work, and did not work anyway
I was talking about tmp...
Not sure
From: Alan McKay alan.mc...@gmail.com
How can I save answers to questions in %pre, for use in %post?
I'm assuming (though have not yet tried) that variables won't live that long.
Could I save them off to /tmp in a file, and retrieve them?
Yes but post can be used 'chrooted' or 'non-chrooted'.
Yes but post can be used 'chrooted' or 'non-chrooted'.
So be sure to put it in the correct tmp...
http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Installation_Guide-en-US/s1-kickstart2-postinstallconfig.html
OK, will be trying that today.
What I'm doing is coming up with a single
http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Installation_Guide-en-US/s1-kickstart2-postinstallconfig.html
Hmmm, that link tells me surprisingly little.
Can you give some specifics as to how I might accomplish this?
--
“Don't eat anything you've ever seen advertised on TV”
From: Alan McKay alan.mc...@gmail.com
http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Installation_Guide-en-US/s1-kickstart2-postinstallconfig.html
Hmmm, that link tells me surprisingly little.
Can you give some specifics as to how I might accomplish this?
It means, if you don't
On Wed, Jan 13, 2010 at 9:48 AM, John Doe jd...@yahoo.com wrote:
It means, if you don't use -nochroot, the '/', when in post, will be
'/mnt/sysimage'.
If you do use -nochroot, the '/' will be '/'.
Hmmm, that is behaving differently that what I see.
I have never used --nochroot, and / is /.
So speaking of things that do not work as advertised, my
--log=/some/log/file is also not working, it seems
In any case, here is what I tried.
In %pre I do this :
echo /tmp/foobar FOOBAR
foo
bar
FOOBAR
and then in %post I do :
%post --log=/root/post-install.log
if [ -f /tmp/foobar ]
then
From: Alan McKay alan.mc...@gmail.com
On Wed, Jan 13, 2010 at 9:48 AM, John Doe wrote:
It means, if you don't use -nochroot, the '/', when in post, will be
'/mnt/sysimage'.
If you do use -nochroot, the '/' will be '/'.
Hmmm, that is behaving differently that what I see.
I have never
On Wed, Jan 13, 2010 at 11:53 AM, John Doe jd...@yahoo.com wrote:
Try this:
in %pre, put in /tmp/foo
Then, use %post with -nochroot and check if /tmp/foo exists
I thought of that but I don't want to mess up what I already have
working with manipulating files in /etc
But at least I can try it
I thought of that but I don't want to mess up what I already have
working with manipulating files in /etc
But at least I can try it to see if this much works
It did mess up all my /etc work, and did not work anyway
Or maybe, if it exists, use the ramdisk (/dev/shm)...
Will try that as well
OK, NFS seems to work so that's my path forward I guess.
Hacky, but works
--
“Don't eat anything you've ever seen advertised on TV”
- Michael Pollan, author of In Defense of Food
___
CentOS mailing list
CentOS@centos.org
Oh, one caveat for anyone who stumbles upon this - in %pre you do not
need to start nfs but in %post you do, otherwise it will not work.
/etc/init.d/netfs start
--
“Don't eat anything you've ever seen advertised on TV”
- Michael Pollan, author of In Defense of Food
On 1/13/2010 1:51 PM, Alan McKay wrote:
Oh, one caveat for anyone who stumbles upon this - in %pre you do not
need to start nfs but in %post you do, otherwise it will not work.
/etc/init.d/netfs start
Are you considering only an initial install or also subsequent updates
or potential
On Wed, Jan 13, 2010 at 3:05 PM, Les Mikesell lesmikes...@gmail.com wrote:
Are you considering only an initial install or also subsequent updates
or potential installs that weren't part of the initial set?
I don't quite understand the question.
I'm just doing an initial install at the moment.
On 1/13/2010 2:14 PM, Alan McKay wrote:
On Wed, Jan 13, 2010 at 3:05 PM, Les Mikeselllesmikes...@gmail.com wrote:
Are you considering only an initial install or also subsequent updates
or potential installs that weren't part of the initial set?
I don't quite understand the question.
I'm
Hey again folks,
How can I save answers to questions in %pre, for use in %post?
I'm assuming (though have not yet tried) that variables won't live that long.
Could I save them off to /tmp in a file, and retrieve them?
e.g.
%pre
echo VARNAME=$VARNAME /tmp/varfile
%post
grep ^VARNAME=
On Tue, 2010-01-12 at 17:42 -0500, Alan McKay wrote:
Hey again folks,
How can I save answers to questions in %pre, for use in %post?
I'm assuming (though have not yet tried) that variables won't live that long.
Could I save them off to /tmp in a file, and retrieve them?
e.g.
%pre
17 matches
Mail list logo