From owner-freebsd-current@FreeBSD.ORG Mon Jun 9 17:51:56 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C1775106567A for ; Mon, 9 Jun 2008 17:51:56 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outY.internet-mail-service.net (outy.internet-mail-service.net [216.240.47.248]) by mx1.freebsd.org (Postfix) with ESMTP id AEBF98FC15 for ; Mon, 9 Jun 2008 17:51:56 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 6AC642498; Mon, 9 Jun 2008 10:51:56 -0700 (PDT) Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id 4C4CF2D6019; Mon, 9 Jun 2008 10:51:56 -0700 (PDT) Message-ID: <484D6DBC.4040309@elischer.org> Date: Mon, 09 Jun 2008 10:51:56 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: Luigi Rizzo References: <20080609141441.GA5025@onelab2.iet.unipi.it> In-Reply-To: <20080609141441.GA5025@onelab2.iet.unipi.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: current@freebsd.org Subject: Re: any simple tool to extract files from an UFS image ? 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: Mon, 09 Jun 2008 17:51:56 -0000 Luigi Rizzo wrote: > Hi, > I am doing some work recently on small FreeBSD images (picobsd and friends), > and I need to run on a linux machine some script to customize > both the UFS and the ISO image. dump and restore? > > Because the customization is just writing some text into a file, > my approach is to put in the UFS image a file with a recognizable > start and end markers, and then dd into the image the stuff I need. > > I was wondering if i could avoid shipping both images, and instead > use some trick to extract the tree from the UFS image and then > use mkisofs on the linux side to build the ISO. > > I know that bsdtar can read ISO images, but I don't think it does > the same on UFS. Yet, if the boot2 code is able to squeeze the > required pieces on 8k or so, maybe there is some simple (and portable) > tool that can do the file extraction job ? > > cheers > luigi > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"