Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Mar 2010 16:32:09 -0600
From:      Tim Judd <tajudd@gmail.com>
To:        freebsd-hackers <freebsd-hackers@freebsd.org>
Subject:   Fwd: mkuzip and/or geom_uzip changes?
Message-ID:  <t2qade45ae91003311532h4ccd9b6ft874cccc4417386e0@mail.gmail.com>
In-Reply-To: <x2lade45ae91003310359qa4141380he522aebf47d4e429@mail.gmail.com>
References:  <x2lade45ae91003310359qa4141380he522aebf47d4e429@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Also in a separate thread to -questions.  Thought it was better on
hackers after a few hours thought.


---------- Forwarded message ----------
From: Tim Judd <tajudd@gmail.com>
Date: Wed, 31 Mar 2010 04:59:52 -0600
Subject: mkuzip and/or geom_uzip changes?
To: FreeBSD Questions <freebsd-questions@freebsd.org>

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?

[-- Attachment #2 --]
WITHOUT_ACCT=1
WITHOUT_AMD=1
WITHOUT_ASSERT_DEBUG=1
WITHOUT_AT=1
WITHOUT_ATM=1
WITHOUT_AUDIT=1
WITHOUT_AUTHPF=1
WITHOUT_BIND=1
WITHOUT_BLUETOOTH=1
WITHOUT_BSD_CPIO=1
WITHOUT_BSNMP=1
WITHOUT_CALENDAR=1
WITHOUT_CDDL=1
WITHOUT_CTM=1
WITHOUT_CVS=1
WITHOUT_DICT=1
WITHOUT_EXAMPLES=1
WITHOUT_FLOPPY=1
WITHOUT_FREEBSD_UPDATE=1
WITHOUT_GAMES=1
WITHOUT_GCOV=1
WITHOUT_GDB=1
WITHOUT_GBIP=1
WITHOUT_HTML=1
WITHOUT_INET6=1
WITHOUT_INFO=1
WITHOUT_IPFILTER=1
WITHOUT_IPFW=1
WITHOUT_IPX=1
WITHOUT_JAIL=1
WITHOUT_LEGACY_CONSOLE=1
WITHOUT_LOCALES=1
WITHOUT_LOCATE=1
WITHOUT_LPR=1
WITHOUT_MAIL=1
WITHOUT_MAILWRAPPER=1
WITHOUT_MAKE=1
WITHOUT_MAN=1
WITHOUT_NCP=1
WITHOUT_NDIS=1
WITHOUT_NIS=1
WITHOUT_NLS=1
WITHOUT_NLS_CATALOGS=1
WITHOUT_NS_CACHING=1
WITHOUT_NTP=1
WITHOUT_OBJC=1
WITHOUT_PF=1
WITHOUT_PMC=1
WITHOUT_PORTSNAP=1
WITHOUT_PPP=1
WITHOUT_QUOTAS=1
WITHOUT_RCMDS=1
WITHOUT_RCS=1
WITHOUT_RESCUE=1
WITHOUT_ROUTED=1
WITHOUT_SENDMAIL=1
WITHOUT_SHAREDOCS=1
WITHOUT_SYSCONS=1
WITHOUT_SYSINSTALL=1
WITHOUT_TELNET=1
WITHOUT_WIRELESS=1
WITHOUT_ZFS=1


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?t2qade45ae91003311532h4ccd9b6ft874cccc4417386e0>