Date: Thu, 24 Apr 2008 21:34:53 +0200 From: David Naylor <naylor.b.david@gmail.com> To: freebsd-current@freebsd.org Subject: init_chroot broken Message-ID: <200804242134.57772.naylor.b.david@gmail.com>
next in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804242134.57772.naylor.b.david>