Gentoo Archives: gentoo-amd64

From: Mark Knecht <markknecht@×××××.com>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] chrrot'ed environment not available to users
Date: Thu, 08 Dec 2005 23:53:36
Message-Id: 5bdc1c8b0512081539g256c7a67m80ac8957210f59d5@mail.gmail.com
In Reply to: Re: [gentoo-amd64] chrrot'ed environment not available to users by Billy Holmes
On 12/8/05, Billy Holmes <billy@××××××.net> wrote:
> Billy Holmes wrote: > > (2) copy the patch to sys-apps/l32/files > > sorry for replying to my own message, but just to let you know.. files > should be a directory: > > # mkdir -p /usr/local/portage/sys-apps/l32/files > > -- > gentoo-amd64@g.o mailing list > >
Hi, I'm apparently not able to get the path edit quite right. It's asking about /home/32-bit. Please double check me if possible: 1) Everything, including the patch file, is copied to /usr/local/portage/sys-apps/l32: lightning ~ # ls -la /usr/local/portage/sys-apps/l32 total 20 drwxr-xr-x 3 root root 4096 Dec 8 15:31 . drwxr-xr-x 3 root root 4096 Dec 8 15:08 .. -rw-rw-r-- 1 root portage 948 Dec 8 15:32 Manifest drwxr-xr-x 3 root portage 4096 Dec 8 15:29 files -rw-r--r-- 1 root portage 610 Dec 8 14:55 l32-1.1.ebuild lightning ~ # lightning ~ # ls -la /usr/local/portage/sys-apps/l32/files/ total 132 drwxr-xr-x 3 root portage 4096 Dec 8 15:29 . drwxr-xr-x 3 root root 4096 Dec 8 15:31 .. -rw-r--r-- 1 root portage 18011 Nov 2 16:13 COPYING -rw-r--r-- 1 root portage 143 Nov 3 10:13 Changelog -rw-r--r-- 1 root portage 932 Nov 2 16:13 INSTALL -rw-r--r-- 1 root portage 1795 Nov 3 10:13 Makefile -rw-rw-r-- 1 root portage 58 Dec 8 15:32 digest-l32-1.1 drwxr-xr-x 2 root portage 4096 Nov 3 10:14 gentoo -rw-r--r-- 1 root portage 6463 Nov 3 09:05 l32.1 -rw-r--r-- 1 root portage 2278 Nov 3 09:05 l32.1.pod -rw-r--r-- 1 root portage 2369 Nov 3 07:59 l32.c -rw-r--r-- 1 root portage 665 Dec 8 15:25 l32.h -rw-r--r-- 1 root portage 51200 Dec 8 15:11 l32_1.1.tar -rw-r--r-- 1 root portage 334 Dec 8 15:19 l32_h-gentoo.patch -rwxr-xr-x 1 root portage 285 Nov 2 16:13 mkman.sh lightning ~ # 2) I edited l32.h as follows to point at the chroot directory I built yesterday: lightning ~ # cat /usr/local/portage/sys-apps/l32/files/l32.h /* * Copyright 2005 by Billy Holmes * * Copying and distribution of this file, with or without modification, are * permitted in any medium without royalty provided the copyright notice and * this notice are preserved. * * This file released under the GPLv2 license found here: * http://www.gnu.org/licenses/gpl.txt */ #ifndef L32_INCLUDE_H #define L32_INCLUDE_H #define DEFAULT_LOWDIR "/mnt/gentoo32" #ifndef DEFAULT_LOWDIR #error "Please edit l32.h and define your DEFAULT_LOWDIR" #endif #define PACKAGE "l32" #define VERSION "1.1" #define COPYRIGHT "Copyright 2005 by Billy Holmes <billy@××××××.net>" #define LICENSE "Distributed under the GPL2" #endif lightning ~ # 3) I build the digest: lightning ~ # ebuild /usr/local/portage/sys-apps/l32/l32-1.1.ebuild digest
>>> Generating digest file...
<<< l32_1.1.tar.gz
>>> Generating manifest file...
<<< l32-1.1.ebuild <<< files/digest-l32-1.1 <<< files/l32_1.1.tar <<< files/COPYING <<< files/Changelog <<< files/INSTALL <<< files/Makefile <<< files/l32.1 <<< files/l32.1.pod <<< files/l32.c <<< files/l32.h <<< files/mkman.sh <<< files/l32_h-gentoo.patch <<< files/gentoo/l32_h-gentoo.patch <<< files/gentoo/l32-1.1.ebuild <<< files/gentoo/README
>>> Computed message digests.
lightning ~ # 4) I emerge it successfully: lightning ~ # emerge l32 Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/l32-1.1 to / >>> md5 files ;-) l32-1.1.ebuild
<SNIP>
>>> original instance of package unmerged safely. >>> Regenerating /etc/ld.so.cache... >>> sys-apps/l32-1.1 merged.
>>> clean: No packages selected for removal.
>>> Auto-cleaning packages ...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date. lightning ~ # 5) Whether I run as root or user I get the same message: lightning ~ # l32 /bin/bash Unable to chroot(/home/32-bit): No such file or directory lightning ~ # exit logout mark@lightning ~ $ l32 /bin/bash Unable to chroot(/home/32-bit): No such file or directory mark@lightning ~ $ 6) My chroot directory is /mnt/gentoo32 as per the build instructions: mark@lightning ~ $ ls -la /mnt/ total 36 drwxr-xr-x 9 root root 4096 Dec 7 11:19 . drwxr-xr-x 22 root root 4096 Nov 4 15:24 .. -rw-r--r-- 1 root root 0 Jul 27 09:17 .keep drwxr-xr-x 2 root root 4096 Sep 2 09:27 Musiclib drwxr-xr-x 2 root root 4096 Sep 18 13:23 camera drwxr-xr-x 2 root root 4096 Jul 27 09:17 cdrom drwxr-xr-x 2 root root 4096 Sep 26 11:05 dvd drwx------ 2 root root 4096 Jul 27 09:17 floppy drwxr-xr-x 18 root root 4096 Aug 10 04:47 gentoo32 drwxr-xr-x 2 root root 4096 Oct 3 11:21 media mark@lightning ~ $ ls -la /mnt/gentoo32/ total 72 drwxr-xr-x 18 root root 4096 Aug 10 04:47 . drwxr-xr-x 9 root root 4096 Dec 7 11:19 .. drwxr-xr-x 2 root root 4096 Dec 7 13:27 bin drwxr-xr-x 2 root root 4096 Jul 26 10:12 boot drwxr-xr-x 17 root root 13920 Dec 8 07:38 dev drwxr-xr-x 45 root root 4096 Dec 8 11:50 etc drwxr-xr-x 2 root root 4096 Jul 26 10:11 home drwxr-xr-x 7 root root 4096 Dec 8 09:11 lib drwx------ 2 root root 16384 Dec 7 11:27 lost+found drwxr-xr-x 4 root root 4096 Jul 26 10:11 mnt drwxr-xr-x 4 root root 4096 Dec 7 19:25 opt dr-xr-xr-x 145 root root 0 Dec 7 23:37 proc drwx------ 7 root root 4096 Dec 8 11:50 root drwxr-xr-x 2 root root 4096 Dec 7 18:10 sbin drwxr-xr-x 10 root root 0 Dec 7 23:37 sys drwxrwxrwt 20 root root 4096 Dec 8 14:48 tmp drwxr-xr-x 15 root root 4096 Dec 7 17:02 usr drwxr-xr-x 12 root root 4096 Dec 7 18:50 var mark@lightning ~ $ Thanks, Mark -- gentoo-amd64@g.o mailing list

Replies

Subject Author
Re: [gentoo-amd64] chrooted environment not available to users Peter Humphrey <prh@××××××××××.uk>