From owner-freebsd-current@FreeBSD.ORG Thu Apr 24 20:04:36 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB885106566B for ; Thu, 24 Apr 2008 20:04:36 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by mx1.freebsd.org (Postfix) with ESMTP id B2D538FC21 for ; Thu, 24 Apr 2008 20:04:35 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so3529882fgg.35 for ; Thu, 24 Apr 2008 13:04:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:organization:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:message-id; bh=3JG7d78MpY8oLpd2wG8tyQfqF/VQWRgHlXKH6gl06Ts=; b=IlHZ9rUIQo19488ZssKiL3jXz9/Tc/RT601c5kkU5b/jDENNxD9BetKT5Gv+/Xozg8lf31qHZ3o9bHhPZjvAMAlDFJNkeSMrDk5rUH3magtRJaVFHJErfOAuDRtaoFF0uwi86KzGXXVqhvT3QowPIBakdV6ZXH/Cc/b17r9qPNQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:organization:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:message-id; b=ESbeI++uAuKcB306q3UU2RdwxddG9sREHzsbJmTuQWbtG1M20dPgsyEZuECQIJh6wOw8c9Yor94qv/HrMY9dZavAby96JDFTE2A9ke9hKNRuLSXDJq3oXOc0y6IMWGzArid6aMgdsPca5os0bABj15rgqv/t5TuybjjxO+KsF1c= Received: by 10.86.93.17 with SMTP id q17mr12594fgb.18.1209065717790; Thu, 24 Apr 2008 12:35:17 -0700 (PDT) Received: from ?0.0.0.0? ( [196.34.241.123]) by mx.google.com with ESMTPS id p9sm1671635fkb.14.2008.04.24.12.35.08 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 24 Apr 2008 12:35:17 -0700 (PDT) From: David Naylor Organization: Private To: freebsd-current@freebsd.org Date: Thu, 24 Apr 2008 21:34:53 +0200 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1449357.0YEZEZxk6z"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200804242134.57772.naylor.b.david@gmail.com> X-Mailman-Approved-At: Thu, 24 Apr 2008 21:50:46 +0000 Subject: init_chroot broken X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Apr 2008 20:04:36 -0000 --nextPart1449357.0YEZEZxk6z Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, init_chroot appears to be broken when used with unionfs (it did work someti= me=20 before RELENG_7 [definitely before the BETA's]). When using -current (with= =20 the vaps patch :-) I get the following message before the system stops: [...] stat(c2d3fcc0,d3ceccfc,8,c0b094e7,c0bbc0a0,...) at stat+0x2f syscall(d3cecd38) at syscall+0x2a3 Xint0x80_syscall() at Xint0x80_syscall+0x20 =2D-- syscall (188, FreeBSD ELF32, stat), eip =3D 0x826fe23, esp =3D 0x9bfb= fe9bc,=20 ebp =3D 0xbfbee98 I tracked the stop to line 320 of init.c:=20 if (chdir(kenv_value) !=3D 0 || chroot(".") !=3D 0) =20 Also, I have a init_script that sets up a few things, here it is: PATH=3D/rescue trap 'echo Recovery console: ; PATH=3D/rescue /rescue/csh -i ; exit' 1 2 3 = 6 15 mount -t cd9660 -o ro /dev/$(mdconfig -a -t vnode -f /base.uzip).uzip /base MD=3D$(mdconfig -a -t malloc -s 32M) newfs /dev/$MD mount /dev/$MD /tmpfs mount -t unionfs -o noatime -o copymode=3Dtransparent /tmpfs /base Note: o) /base.uzip is a mkuzip image of an iso of the base system o) If the sets after MD=3D... are skipped then the system mounts cleanly If I can only get tmpfs to work then this can become a really flexible live= =20 CD :-) ..... If you require any further information (or my build scripts) please let me= =20 know Regards David --nextPart1449357.0YEZEZxk6z Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBIEODhUaaFgP9pFrIRAl/MAJ9sJ8FTV5hli8hdgzTIcQbLdsPk7wCcDq/1 xljiNoF3MmzFLJwaxY2zlGs= =/z4+ -----END PGP SIGNATURE----- --nextPart1449357.0YEZEZxk6z--