You are not logged in.
Pages: 1
I set up a 32 bit chroot for zsnes, as per the directions given in the wiki. Standardly, everything works fine, and running
dchroot -d zsnes
loads it just fine.
I didn't want the chroot to have access to my home directory, though, so I commented out the lines in /etc/rc.d/arch32 that mount-binded /home to /opt/arch32/home. I copied my ~./zsnes folder to /opt/arch32/home/my-username/.zsnes, figuring that zsnes wouldn't be able to tell the difference between that and the default setup. However, without /home mounted, when I try to run zsnes, i get:
[greg@trollhammaren ~]$ zsnes
(arch32) zsnes
ZSNES v1.51, (c) 1997-2007, ZSNES Team
Be sure to check http://www.zsnes.com/ for the latest version.
ZSNES is written by the ZSNES Team (See AUTHORS.TXT)
ZSNES comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions;
please read 'LICENSE.TXT' thoroughly before doing so.
Use ZSNES -? for command line definitions.
Starting Mouse detection.
Unable to poll /dev/input/event6. Make sure you have read permissions to it.
Unable to poll /dev/input/event3. Make sure you have read permissions to it.
Unable to poll /dev/input/event5. Make sure you have read permissions to it.
Unable to poll /dev/input/event2. Make sure you have read permissions to it.
Unable to poll /dev/input/event4. Make sure you have read permissions to it.
Unable to poll /dev/input/event1. Make sure you have read permissions to it.
Unable to poll /dev/input/event0. Make sure you have read permissions to it.
ManyMouse: 0 mice detected.
No protocol specified
No protocol specified
No protocol specified
No protocol specified
Could not set 512x448 video mode: No available video device
and then zsnes just exits. I get a lot of the same output when I run zsnes with /home mounted, but in that case it works. Anyone have any ideas what's going on, or how to fix it?
Offline
Show your edited script for mounting the other directories.
Offline
[greg@trollhammaren ~]$ cat /etc/rc.d/arch32
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
case $1 in
start)
stat_busy "Starting Arch32 chroot"
mount --bind /proc /opt/arch32/proc
mount --bind /proc/bus/usb /opt/arch32/proc/bus/usb
mount --bind /dev /opt/arch32/dev
mount --bind /dev/pts /opt/arch32/dev/pts
mount --bind /dev/shm /opt/arch32/dev/shm
mount --bind /sys /opt/arch32/sys
mount --bind /tmp /opt/arch32/tmp
# mount --bind /home /opt/arch32/home
mount --bind "/data/SNES Roms" /opt/arch32/SNES_roms
add_daemon arch32
stat_done
;;
stop)
stat_busy "Stopping Arch32 chroot"
umount /opt/arch32/proc/bus/usb
umount /opt/arch32/proc
umount /opt/arch32/dev/pts
umount /opt/arch32/dev/shm
umount /opt/arch32/dev
umount /opt/arch32/sys
umount /opt/arch32/tmp
# umount /opt/arch32/home
umount /opt/arch32/SNES_roms
rm_daemon arch32
stat_done
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0
Offline
Did you chown your home directory in the chroot?
Offline
Did you chown your home directory in the chroot?
I chowned the /opt/arch32/home/greg directory with the chroot-related directories unmounted, yes.
Offline
Anyone have any ideas?
Offline
Pages: 1