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

Re: Path to cdrom]



RPM won't work in the --nochroot ofcourse, since all the files(/usr/bin/rpm,
and the rpm-db's) are in /mnt/syimage/<dir> instead of in /<dir>
What you should do is copy the rpm's to the system in a %post --nochroot and
then install them afterwards:
%post --nochroot
mkdir /mnt/sysimage/root/rpm
cp /mnt/source/Extras/*.rpm /mnt/sysimage/root/rpm

%post
rpm -ivh /root/rpm/*.rpm


Cipri

----- Original Message ----- 
From: "Stas Goshtein" <stas actona com>
To: <kickstart-list redhat com>
Sent: Monday, June 23, 2003 5:08 PM
Subject: [Fwd: Path to cdrom]


>
>
> -------- Original Message --------
> Subject: Path to cdrom
> Date: Mon, 23 Jun 2003 17:28:46 +0300
> From: Stas Goshtein <stas actona com>
> To: Anaconda <anaconda-devel-list redhat com>
>
>
>
> Hello there guys, if it was already asked, sorry for duplicate, but I
> couldn't find anything exact on this issue.
> Let's say, that my RHJ distribution is 2 discs. On the second one I've
> created a folder (Extras) and put my RPMS there.
> I can't include them in comps, since version and release are including
> _underscores_ . Now I would like to put a line in kickstart %post
> -nochroot section to install them after everything else is done. So what
> will be the command line in %post section?
>
> %post --nochroot
> rpm -ivh /mnt/source/Extras/<rpm file>
>
> or
>
> %post --nochroot
> rpm -ivh /tmp/cdrom/Extras/<rpm file>
>
> or something else?
>
> Thanks for prompt answer.
>
> -- 
>
> Regards,
>
> Stas Goshtein
> Linux R&D Engineer - CCSE, SNA1, CCNA
> Actona Technologies, Ltd.
> Email: stas actona com
> Phone: (972)-50-718508
> http://www.actona.com/
> --------------------------------
>
>
>
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list redhat com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list
>
>
> -- 
>
>  Regards,
>
> Stas Goshtein
>  Linux R&D Engineer - CCSE, SNA1, CCNA
>  Actona Technologies, Ltd.
>  Email: stas actona com
>  Phone: (972)-50-718508
>  http://www.actona.com/
> --------------------------------
>
>
>
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list redhat com
> https://www.redhat.com/mailman/listinfo/kickstart-list
>




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