Ticket #798 (closed enhancement: upstream)

Opened 4 years ago

Last modified 4 years ago

AccountsRepository should support roots othern than '/'

Reported by: dbender Owned by:
Priority: Sometime Milestone: Misc features
Component: clients/paludis Version: 0.40.1
Keywords: AccountsRepository Cc:
Blocked By: Blocking:
Distribution: Exherbo

Description

When attempting to install to an environment with a root != '/', AccountsRepository? gives a configuration error. This is blocking me from building me a tiny exherbo image.

Change History

comment:1 Changed 4 years ago by ciaranm

  • Status changed from new to closed
  • Resolution set to upstream

We can't really do anything about this until the shadow maintainers add in support for it. They know we want it, but how long it'll take them is anyone's guess.

comment:2 Changed 4 years ago by dbender

Acknowledged. According to  http://ciaranm.wordpress.com/2009/01/26/managing-accounts-with-the-package-manager/ I can specify some other method managing users. I see that installed_accounts.conf has a key for "handler". Can I just change my handler to something else? What are the available choices?

comment:3 Changed 4 years ago by ciaranm

That's the only handler we've implemented. The easiest way to cheat for chroots for now is to importare empty directories as the accounts and make extremely sure you've set up accounts correctly by hand, matching IDs on / with IDs in the chroot.

comment:4 Changed 4 years ago by dbender

Here's what I did, moved out the accounts files and successfully ran importare. This is got me moving forward:

 # cp /etc/passwd* /tiny/sheeva/etc
 # mkdir /root/paludisbuild
 # cd /tiny/sheeva/etc/paludis
 # mv accounts.conf installed_accounts.conf ../
 # importare user/paludisbuild --location /root/paludisbuild -E :sheeva
 # importare user/sshd --location /root/paludisbuild -E :sheeva

thanks

Note: See TracTickets for help on using tickets.