From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 31 23:01:09 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A53E1065670 for ; Wed, 31 Mar 2010 23:01:09 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id B720A8FC13 for ; Wed, 31 Mar 2010 23:01:08 +0000 (UTC) Received: by gwj17 with SMTP id 17so398917gwj.13 for ; Wed, 31 Mar 2010 16:01:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=BhUekRC7dG1o6hJFiVzFME8KniTd6Pc2w5dfBtDTHx8=; b=HihxhPrI6I7WqP+3T9kEqqPe9T4xgFnRw+9fWL2bOf4Waz+QvROYx/tFf/Z1I+wirD nFu8H2TRNx8ez6wsvCLZcPUWKLPcNNIFk9DMOdvsv7lU6gUX8iWhjYG0ZXISRD+588hm KL16TMiZXJltjh1jgye38CWAQ1VGS/MHaz9ko= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=JagnmypuBxyAklTgGRI+YWsxwLapnVh+vyEMsWaRppJltS7RJn8zn4iPp4oJMrYI+U 42JvhCleGuRcTXs1Ss/JC1PiNedmpjopoZSl5WfgeC+xhwslatoFaT+52y04qvBoY8JQ wDosCj8T+K3u/C0NsIpLQh0/J3ZNP0OhY1qYM= MIME-Version: 1.0 Received: by 10.231.146.147 with HTTP; Wed, 31 Mar 2010 15:32:09 -0700 (PDT) In-Reply-To: References: Date: Wed, 31 Mar 2010 16:32:09 -0600 Received: by 10.90.59.33 with SMTP id h33mr807521aga.87.1270074729759; Wed, 31 Mar 2010 15:32:09 -0700 (PDT) Message-ID: From: Tim Judd To: freebsd-hackers Content-Type: multipart/mixed; boundary=0016363106cb1b1c3d04832051b1 Subject: Fwd: mkuzip and/or geom_uzip changes? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Mar 2010 23:01:09 -0000 --0016363106cb1b1c3d04832051b1 Content-Type: text/plain; charset=ISO-8859-1 Also in a separate thread to -questions. Thought it was better on hackers after a few hours thought. ---------- Forwarded message ---------- From: Tim Judd Date: Wed, 31 Mar 2010 04:59:52 -0600 Subject: mkuzip and/or geom_uzip changes? To: FreeBSD Questions Hi All, Just starting to see if I can find other reports. You all probably have had the "more than one pair of eyes looking at a thing is better than my eyes alone." This is why I'm writing now, as I'm starting the discovery. Let me background this a little bit. I only started looking into this because mkuzip and it's counterpart, geom_uzip are throwing errors on FreeBSD8 i386 scenario (/etc/src.conf in effect, removing *LOTS* of stuff with knobs): make DESTDIR=/home/small8 installworld installkernel distribution mv /home/small8/boot /home/small8-boot/ makefs -t ffs /home/small8/usr.img /home/small8/usr/ mkuzip -o /home/small8/usr.uzip /home/small8/usr.img [*] chflags -R noschg /home/small8/usr/* rm -rf /home/small8/usr/* /home/small8/usr.img ee /home/small8/etc/rc.d/mountcritlocal [**] makefs -t ffs /home/small8-boot/mfsroot /home/small8/ gzip --best /home/small8-boot/mfsroot ee /home/small8-boot/boot/loader.conf [***] rm /home/small8-boot/boot/kernel/*.symbols gzip --best /home/small8-boot/boot/kernel/kernel mkisofs -U -J -r -V "FreeBSD8" -b boot/cdboot -no-emul-boot -iso-level 4 -o /home/small8.iso /home/small8-boot/ [*]: mkuzip inserts a script header that is broken. module name it's searching for may have been renamed? [**]: Edited mountcritlocal to mount the usr.uzip file as by using the above script header, throws errors [***]: added zlib and geom_uzip modules to load to the boot image, to satisfy the script header's requirements. OK, the above scenario creates about a 33MB usr.uzip, and a 68MB iso. Small enough to apparently fit into the undocumented 50 or 100MB size limit of mfs_root module The problem: mkuzip generates a few lines as a script in the head of the resulting *.uzip file. Two problems... 1) the module it queries for is geom_uzip (kldstat -m $m), but FreeBSD8 names the geom_uzip module (i guess, internally) as g_uzip. mkuzip's generated image will never find the module if they're not named the same. 2) even with geom_uzip module and it's dependency zlib loaded, i don't get a mdconfig node '/dev/md?.uzip' to appear. It's been forever since I touched uzip, so I have to ask. Looking at the cvsweb, (as a bonus question, what's the svn website address to look at source files?) mkuzip program last modified 3 years (2 months for the Makefile), geom_uzip module Makefile last modified 4 years ago. 3-4 years yield a median FreeBSD version 6.2. Have we broken something in 7 or 8? The request: Is it a PEBKAC? ID 10T error? Duplicatable? I'm gonna research what I can, when I can. I would expect to see something pop up clearly if it is a regression. Can I ask you all to use your eyes or past knowledge if something is broken? --0016363106cb1b1c3d04832051b1 Content-Type: application/octet-stream; name="src.conf" Content-Disposition: attachment; filename="src.conf" Content-Transfer-Encoding: base64 X-Attachment-Id: file0 V0lUSE9VVF9BQ0NUPTEKV0lUSE9VVF9BTUQ9MQpXSVRIT1VUX0FTU0VSVF9ERUJVRz0xCldJVEhP VVRfQVQ9MQpXSVRIT1VUX0FUTT0xCldJVEhPVVRfQVVESVQ9MQpXSVRIT1VUX0FVVEhQRj0xCldJ VEhPVVRfQklORD0xCldJVEhPVVRfQkxVRVRPT1RIPTEKV0lUSE9VVF9CU0RfQ1BJTz0xCldJVEhP VVRfQlNOTVA9MQpXSVRIT1VUX0NBTEVOREFSPTEKV0lUSE9VVF9DRERMPTEKV0lUSE9VVF9DVE09 MQpXSVRIT1VUX0NWUz0xCldJVEhPVVRfRElDVD0xCldJVEhPVVRfRVhBTVBMRVM9MQpXSVRIT1VU X0ZMT1BQWT0xCldJVEhPVVRfRlJFRUJTRF9VUERBVEU9MQpXSVRIT1VUX0dBTUVTPTEKV0lUSE9V VF9HQ09WP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