Description of problem: Creating a chroot environment according to Mageia Wiki directions and configuring schroot per the example config file and launching schroot as user will fail to copy the necessary files listed in copyfile or nssdatabases and fail to mount the /home directories Version-Release number of selected component (if applicable): schroot-1.7.2-4.mga5 My system: Mageia5 4.1.15-desktop-2.mga5 x86_64 Steps to Reproduce: Following directions at https://wiki.mageia.org/en/Chroot 1.# mkdir -p /mnt/chroot/mageia32 2.# urpmi.addmedia --distrib --urpmi-root /mnt/chroot/mageia32 ftp://mageia.jameswhitby.net/mageia/distrib/5/i586/ 3.# urpmi --urpmi-root /mnt/chroot/mageia basesystem urpmi locales-en 4.# urpmi schroot 5. Edit /etc/schroot/schroot.conf following the example as follows: [Mageia32] description=Mageia5 32-bit directory=/mnt/chroot/mageia32 users=hoyt groups=hoyt root-groups=root,hoyt aliases=mageia32,default 6. $ schroot -c mageia32 RESULTS: id: cannot find name for user ID 500 # <== this is my correct user id -bash-4.3$ ls -bash: history: /home/hoyt/.bash_history: cannot create: Permission denied -bash-4.3$ su - su: user root does not exist -bash: history: /home/hoyt/.bash_history: cannot create: Permission denied None of the files listed in /etc/schroot/default/nssdatabases have been copied into the chroot environment. The file that are there are the default files from the initial installation.
Assignee: bugsquad => makowski.mageia
hum, try with : [Mageia32] description=Mageia5 32-bit type=directory directory=/mnt/chroot/mageia32 users=hoyt groups=hoyt root-groups=root,hoyt aliases=mageia32,default preserve-environment=true
another point, if you make a 32bit chroot in a 64bit box, you also need to add : personality=linux32 see man
I will try that this evening. I had also created an identical 64-bit chroot enviromemt that produced the same results as I shared for the 32-bit chroot.
I had some time at work, so I duplicated the installation here. With the configuration changes you suggested, [Mageia32] description=Mageia5 32-bit type=directory directory=/mnt/chroot/mageia32 users=hoyt groups=hoyt root-groups=root,hoyt aliases=mageia32,default preserve-environment=true personality=linux32 It appears to work as expected. I added /etc/sudoers to the list in /etc/schroot/default/copyfiles and sudo works as expected. Schroot balked at including it in the list in /etc/schroot/default/nssdatabases. Thank you. I'm now ready to do some additional exploration with schroot. The use of the union filesystem looks interesting, particularly for building custom rpm packages. I would suggest modifying the directions at https://wiki.mageia.org/en/Chroot to include a Mageia-centric example, since this is not a bug in the application package, but instead a shortcoming of the documentation.
As well, the 64-bit schroot works as expected. Thanks!
reported as solved
Status: NEW => RESOLVEDResolution: (none) => FIXED