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

Re: AW: kickstart trouble



Vera Kiessling wrote:
> 
> My mouse problem is now solved (thanks a lot)but this time I have trouble
> with the %post part. Anaconda only tells: no such file or directory. Is it
> possible that this is because of the chroot environment? I tried to write
> --nochroot in the ks-file but it didn´t help. where do I have to place it ?
> I tried it like this:
> 
> %post --nochroot
> #add another nameserver
> echo "nameserver 141..... " >>/etc/resolv.conf
> 
> Thanks for your help,
> 
> Vera
> 
> --
> To unsubscribe: mail redhat-install-list-request redhat com with
> "unsubscribe" as the Subject.

If you use the option --nochroot your root image will
be somewhere under /mnt/sysimage not "/".

This should work:

%post
eecho "nameserver 141..... " >>/etc/resolv.conf

or 

%post --nochroot
echo "nameserver 141..... " >>/mnt/sysimage/etc/resolv.conf

-- Holger



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