You are not logged in.

#1 2010-07-14 22:36:19

RiceKills
Member
Registered: 2010-05-31
Posts: 72

wine with 32bit chroot help

Hi, I want to use wine from a chroot environment, I followed the instructions on the wiki, now my problem is that wine won't see the data from my 64bit install. I think I need to bind a lot of my 64bit install to my 32bit chroot, how do I do that? what folders should I bind?

I use the alias wine='schroot -pqd "$(pwd)" -- wine' to run wine.

Last edited by RiceKills (2010-07-14 22:37:29)

Offline

#2 2010-07-14 22:46:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: wine with 32bit chroot help

> now my problem is that wine won't see the data from my 64bit install.
I think that's what chroot's about: what happens in Vegas, stays in Vegas.
http://wiki.archlinux.org/index.php/Chroot
When you change root to another directory you cannot access files and commands outside that directory.

Offline

#3 2010-07-14 23:01:31

RiceKills
Member
Registered: 2010-05-31
Posts: 72

Re: wine with 32bit chroot help

isn't that what the schroot -p for? FWIU, schroot -p will automagically preserve the environment, thats how I can schroot -p -- firefox and run 32 bit firefox and it keeps my history/themes ect.
I don't understand why it doesn't work with wine though.

Offline

#4 2010-07-14 23:08:47

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Offline

#5 2010-07-15 02:40:28

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: wine with 32bit chroot help

schroot -p only preserves the environment (output of env), if you have multiple mount-points you need to specify them without the chroot.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#6 2010-07-15 13:36:37

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: wine with 32bit chroot help

RiceKills wrote:

now my problem is that wine won't see the data from my 64bit install. I think I need to bind a lot of my 64bit install to my 32bit chroot, how do I do that? what folders should I bind?

Write the folders where your data are in the file /etc/schroot/mount-arch32.
For example, I need to access files in a /data folder when I am inside my arch32 chrooted system ; so I added the folder like that :

# mount.defaults: static file system information for chroots.
# Note that the mount point will be prefixed by the chroot path
# (CHROOT_PATH)
#
# <file system> <mount point>   <type>  <options>   <dump>  <pass>
proc        /proc       proc    defaults    0   0
/dev        /dev        none    rw,bind     0   0
#/dev/pts   /dev/pts    none    rw,bind     0   0
tmpfs       /dev/shm    tmpfs   defaults    0   0
/sys        /sys        none    rw,bind     0   0
/tmp        /tmp        none    rw,bind     0   0
/home       /home       none    rw,bind     0   0
/data       /data       none    rw,bind     0   0

Note the last line in the file.
You should not have so many data folders to bind, so write one line for each different base directory.

Last edited by berbae (2010-07-15 13:51:10)

Offline

Board footer

Powered by FluxBB