Re: [Rpm-maint] rpm --root doesn't work or I am doing something wrong?

2008-03-10 Thread Marcin Rybak
Did you init the rpm database inside the --root?

2008/3/7, Neo Jia [EMAIL PROTECTED]:

 hi,

 sorry, I don't find any other mailing list to submit my questions.

 I am trying to setup a build root so I need to install rpm package to
 a different root directory.

  rpm --root=/home/cjia/workareas/rpm_root/fc8_root/ -ivh
 setup-2.6.10-1.fc8.noarch.rpm
 warning: setup-2.6.10-1.fc8.noarch.rpm: Header V3 DSA signature:
 NOKEY, key ID 4f2a6fd2
 Preparing...###
 [100%]
1:setup  ###
 [100%]
 error: unpacking of archive failed on file /etc/aliases;47d1b91c:
 cpio: open failed - Permission denied

 Why it is still trying to write to /etc/... ?

 Thanks,
 Neo

 --
 I would remember that if researchers were not ambitious
 probably today we haven't the technology we are using!
 ___
 Rpm-maint mailing list
 Rpm-maint@lists.rpm.org
 https://lists.rpm.org/mailman/listinfo/rpm-maint

___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
https://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] rpm --root doesn't work or I am doing something wrong?

2008-03-10 Thread Panu Matilainen

On Sat, 8 Mar 2008, Pixel wrote:


Neo Jia [EMAIL PROTECTED] writes:


hi,

sorry, I don't find any other mailing list to submit my questions.

I am trying to setup a build root so I need to install rpm package to
a different root directory.


rpm --root=/home/cjia/workareas/rpm_root/fc8_root/ -ivh 
setup-2.6.10-1.fc8.noarch.rpm

warning: setup-2.6.10-1.fc8.noarch.rpm: Header V3 DSA signature:
NOKEY, key ID 4f2a6fd2
Preparing...### [100%]
   1:setup  ### [100%]
error: unpacking of archive failed on file /etc/aliases;47d1b91c:
cpio: open failed - Permission denied

Why it is still trying to write to /etc/... ?


i must be because chroot(2) failed... without an error message.

you must be root to use rpm --root


Yup, and it's also a bug in rpm that it doesn't give any indication that 
chroot() failed.


- Panu -
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
https://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] rpm --root doesn't work or I am doing something wrong?

2008-03-10 Thread Neo Jia
I remember that I can do this without being root on FC3.

Thanks,
Neo

On Mon, Mar 10, 2008 at 12:02 AM, Panu Matilainen [EMAIL PROTECTED] wrote:

 On Sat, 8 Mar 2008, Pixel wrote:

   Neo Jia [EMAIL PROTECTED] writes:
  
   hi,
  
   sorry, I don't find any other mailing list to submit my questions.
  
   I am trying to setup a build root so I need to install rpm package to
   a different root directory.
  
   rpm --root=/home/cjia/workareas/rpm_root/fc8_root/ -ivh 
 setup-2.6.10-1.fc8.noarch.rpm
   warning: setup-2.6.10-1.fc8.noarch.rpm: Header V3 DSA signature:
   NOKEY, key ID 4f2a6fd2
   Preparing...### 
 [100%]
  1:setup  ### 
 [100%]
   error: unpacking of archive failed on file /etc/aliases;47d1b91c:
   cpio: open failed - Permission denied
  
   Why it is still trying to write to /etc/... ?
  
   i must be because chroot(2) failed... without an error message.
  
   you must be root to use rpm --root

  Yup, and it's also a bug in rpm that it doesn't give any indication that
  chroot() failed.

 - Panu -




-- 
I would remember that if researchers were not ambitious
probably today we haven't the technology we are using!
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
https://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] rpm --root doesn't work or I am doing something wrong?

2008-03-09 Thread Marcin Rybak
2008/3/7, Neo Jia [EMAIL PROTECTED]:

  rpm --root=/home/cjia/workareas/rpm_root/fc8_root/ -ivh
 setup-2.6.10-1.fc8.noarch.rpm
 warning: setup-2.6.10-1.fc8.noarch.rpm: Header V3 DSA signature:
 NOKEY, key ID 4f2a6fd2
 Preparing...###
 [100%]
1:setup  ###
 [100%]
 error: unpacking of archive failed on file /etc/aliases;47d1b91c:
 cpio: open failed - Permission denied

 Why it is still trying to write to /etc/... ?



Did you init the rpm database inside the --root?

BR,

Marcin Rybak

http://marti.dimerge.net/
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
https://lists.rpm.org/mailman/listinfo/rpm-maint