Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 162353 - app-emulation/x86-chroot - init script fails
Summary: app-emulation/x86-chroot - init script fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Simon Stelling (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-16 13:08 UTC by Davide Cendron (RETIRED)
Modified: 2007-01-16 14:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Davide Cendron (RETIRED) gentoo-dev 2007-01-16 13:08:17 UTC
I'm trying to use the recent app-emulation/x86-chroot ebuild (it installs without problems), but when i start the init script it seems to fail:

* Mounting 32bits chroot dirs to /opt/x86-chroot ...
mount: il mount point /opt/x86-chroot/usr/portage non esiste
mount: il mount point /opt/x86-chroot/usr/portage/distfiles non esiste
 * An error occured while attempting to mount 32bit chroot directories                                                 [ !! ]
 * Copying 32bits chroot files ...
 * An error occured while attempting to copy 32 bits chroot files.                                                     [ !! ]

For the first error i've created the missing directory /opt/x86-chroot/usr/portage, but for the 2nd error the resolution is harder.

I've edited the init script, removing the output to /dev/null and adding "-v" parameter to "cp" commands.

This is the result:

# /etc/init.d/x86-chroot start
 * Mounting 32bits chroot dirs to /opt/x86-chroot ...                                                                  [ ok ]
 * Copying 32bits chroot files ...
`/etc/resolv.conf' -> `/opt/x86-chroot/etc/resolv.conf'
`/etc/passwd' -> `/opt/x86-chroot/etc/passwd'
`/etc/shadow' -> `/opt/x86-chroot/etc/shadow'
`/etc/hosts' -> `/opt/x86-chroot/etc/hosts'
`/opt/x86-chroot/etc/localtime' rimosso
`/etc/localtime' -> `/opt/x86-chroot/etc/localtime'
xhost:  unable to open display ""
 * An error occured while attempting to copy 32 bits chroot files.                                                     [ !! ]
`/etc/group' -> `/opt/x86-chroot/etc/group'
`/etc/gshadow' -> `/opt/x86-chroot/etc/gshadow


But if i run from the shell (as root, and inside a X terminal like Konsole)

# xhost local:localhost

it runs without errors.

The same issue occurs (as root and as normal user) if i run this command in the textual shell (Alt+F1 + login)
Comment 1 Simon Stelling (RETIRED) gentoo-dev 2007-01-16 13:14:12 UTC
what is "rimosso"?
Comment 2 Davide Cendron (RETIRED) gentoo-dev 2007-01-16 13:39:57 UTC
Ooops, my system is localized in Italian language :P

rimosso = removed

By the way, i suggest to remove the

"which xhost &>/dev/null && xhost local:localhost &>/dev/null"

command from the init script, and add it to the executable script /usr/bin/x86-chroot, that becomes

#!/bin/bash
"which xhost &>/dev/null && xhost local:localhost &>/dev/null"
source /etc/conf.d/x86-chroot
linux32 chroot ${CHROOT_LOCATION} /bin/bash
Comment 3 Davide Cendron (RETIRED) gentoo-dev 2007-01-16 13:41:32 UTC
(In reply to comment #2)
> 
> #!/bin/bash
> "which xhost &>/dev/null && xhost local:localhost &>/dev/null"
> source /etc/conf.d/x86-chroot
> linux32 chroot ${CHROOT_LOCATION} /bin/bash
> 

Without the double quote, obviously... :\

Comment 4 Simon Stelling (RETIRED) gentoo-dev 2007-01-16 14:09:20 UTC
Yeah, i just did that, along with some other minor things. Thanks!