From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JJHPx-0008HF-1x for garchives@archives.gentoo.org; Mon, 28 Jan 2008 00:00:05 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CCDA4E048C; Mon, 28 Jan 2008 00:00:03 +0000 (UTC) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.245]) by pigeon.gentoo.org (Postfix) with ESMTP id 9C07BE0516 for ; Mon, 28 Jan 2008 00:00:03 +0000 (UTC) Received: by an-out-0708.google.com with SMTP id c8so323948ana.47 for ; Sun, 27 Jan 2008 16:00:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type; bh=BDZSG8ZV9IrGamxmLoTwMJAFCJepLCX2SOuBDadKvyA=; b=DwZWXvijuDzV292Z9wOKUcHBYbX893wRacEBIcBDILp4TMy/rNKomgjYRK0/ow+gdsnUsuDexMsvpfVKGhMvr4o1AGO8L7nxKYkENeTPIPKI3wkeZ7VKxoxWU2xQIfE5W5/NgkYb3og0CZXvH/hvZjKIju3KwNPp9YXQdoxv0GY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type; b=fmYi5IS/zAcRz1YBF/i1CmukfmcqEvrOyEsfSpE9e7hUCGvsBxtKDCQoyNQlO3S15GmFnC7rtgBT2+KiWstvMwfSU+fjBAphJeFV2LgffUIzqm+4CzETdlHQh4KQE62ZXqNMWeg1N4RojBpDQwaEzSn6VbpXwbrk81v42aGmgTY= Received: by 10.100.33.19 with SMTP id g19mr10417112ang.117.1201478403302; Sun, 27 Jan 2008 16:00:03 -0800 (PST) Received: from ?192.168.1.66? ( [74.236.79.85]) by mx.google.com with ESMTPS id d25sm7590281and.2.2008.01.27.16.00.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 27 Jan 2008 16:00:01 -0800 (PST) Message-ID: <479D1AF3.2040102@gmail.com> Date: Sun, 27 Jan 2008 18:59:47 -0500 From: "Randall D. Wald" User-Agent: Thunderbird 2.0.0.9 (X11/20071116) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-releng@lists.gentoo.org Reply-to: gentoo-releng@lists.gentoo.org MIME-Version: 1.0 To: gentoo-releng@lists.gentoo.org Subject: Re: [gentoo-releng] Re: Call for feature requests for 2008.0 References: <1201287758.25842.2.camel@loss> <1201289697.5992.17.camel@inertia.twi-31o2.org> <1201316285.6445.14.camel@inertia.twi-31o2.org> In-Reply-To: X-Enigmail-Version: 0.95.5 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig84313876FFEC0C1156E3B6C4" X-Archives-Salt: 8390e644-be86-4643-9cd5-32c38d0d7078 X-Archives-Hash: 5fa5c36ae68a5764ac64ea267239a4d4 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig84313876FFEC0C1156E3B6C4 Content-Type: multipart/mixed; boundary="------------020905020701000202040403" This is a multi-part message in MIME format. --------------020905020701000202040403 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Actually, I found a script to convert a Ubuntu LiveCD into a LiveUSB; maybe you could use it as a starting point. It's attached. Sincerely, Randall Wald Nelson Batalha wrote: >> If someone were to take the time to put together a batch >> file/syslinux.exe combination for Windows and a bash script/syslinux >> combination for Linux, I'd add them to the CD. >=20 > I'll try to have the linux script by late February for the 2008.0 beta.= >=20 >=20 > -----------------------------------------------------------------------= - > Express yourself instantly with MSN Messenger! MSN Messenger > --------------020905020701000202040403 Content-Type: application/x-sh; name="isotostick.sh" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline; filename="isotostick.sh" #!/bin/bash # Convert an Ubuntu live CD iso so that it's bootable off of a USB stick # Copyright 2007 Red Hat, Inc. # Jeremy Katz # Jani Monoses (slightly adapted to Ubuntu LiveCD) #=20 # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Library General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U= SA. export PATH=3D/sbin:/usr/sbin:$PATH usage() { echo "$0 [--reset-mbr] [--noverify] " exit 1 } cleanup() { [ -d "$CDMNT" ] && umount $CDMNT && rmdir $CDMNT [ -d "$USBMNT" ] && umount $USBMNT && rmdir $USBMNT } exitclean() { echo "Cleaning up to exit..." cleanup exit 1 } getdisk() { DEV=3D$1 p=3D$(udevinfo -q path -n $DEV) if [ -e /sys/$p/device ]; then device=3D$(basename /sys/$p) else device=3D$(basename $(readlink -f /sys/$p/../)) fi if [ ! -e /sys/block/$device -o ! -e /dev/$device ]; then echo "Error finding block device of $DEV. Aborting!" exitclean fi device=3D"/dev/$device" } resetMBR() { getdisk $1 cat /usr/lib/syslinux/mbr.bin > $device } checkMBR() { getdisk $1 bs=3D$(mktemp /tmp/bs.XXXXXX) dd if=3D$device of=3D$bs bs=3D512 count=3D1 2>/dev/null || exit 2 =20 mbrword=3D$(hexdump -n 2 $bs |head -n 1|awk {'print $2;'}) rm -f $bs if [ "$mbrword" =3D "0000" ]; then echo "MBR appears to be blank." echo "Do you want to replace the MBR on this device?" echo "Press Enter to continue or ctrl-c to abort" read resetMBR $1 fi return 0 } checkPartActive() { dev=3D$1 getdisk $dev =20 # if we're installing to whole-disk and not a partition, then we=20 # don't need to worry about being active if [ "$dev" =3D "$device" ]; then return fi if [ "$(/sbin/fdisk -l $device 2>/dev/null |grep $dev |awk {'print $2= ;'})" !=3D "*" ]; then echo "Partition isn't marked bootable!" echo "You can mark the partition as bootable with " echo " # /sbin/parted $device" echo " (parted) toggle N boot" echo " (parted) quit" exitclean fi } checkFilesystem() { dev=3D$1 USBFS=3D$(/lib/udev/vol_id -t $dev) if [ "$USBFS" !=3D "vfat" -a "$USBFS" !=3D "msdos" -a "$USBFS" !=3D "= ext2" -a "$USBFS" !=3D "ext3" ]; then echo "USB filesystem must be vfat or ext[23]" exitclean fi USBLABEL=3D$(/lib/udev/vol_id -u $dev) if [ -n "$USBLABEL" ]; then=20 USBLABEL=3D"UUID=3D$USBLABEL" ;=20 else USBLABEL=3D$(/lib/udev/vol_id -l $dev) if [ -n "$USBLABEL" ]; then=20 USBLABEL=3D"LABEL=3D$USBLABEL"=20 else echo "Need to have a filesystem label or UUID for your USB device" if [ "$USBFS" =3D "vfat" -o "$USBFS" =3D "msdos" ]; then echo "Label can be set with /sbin/dosfslabel" elif [ "$USBFS" =3D "ext2" -o "$USBFS" =3D "ext3" ]; then echo "Label can be set with /sbin/e2label" fi exitclean fi fi } checkSyslinuxVersion() { if [ ! -x /usr/bin/syslinux ]; then echo "You need to have syslinux installed to run this script" exit 1 fi if ! syslinux 2>&1 | grep -qe -d; then SYSLINUXPATH=3D"" else SYSLINUXPATH=3D"syslinux" #menu texts are trimmed when syslinux is not in / no idea why SYSLINUXPATH=3D"" fi } if [ $(id -u) !=3D 0 ]; then=20 echo "You need to be root to run this script" exit 1 fi while [ $# -gt 2 ]; do case $1 in --noverify) noverify=3D1 ;; --reset-mbr|--resetmbr) resetmbr=3D1 ;; *) usage ;; esac shift done ISO=3D$1 USBDEV=3D$2 if [ -z "$ISO" -o ! -e "$ISO" ]; then usage fi if [ -z "$USBDEV" -o ! -b "$USBDEV" ]; then usage fi if [ -z "$noverify" ]; then # verify the image echo "Not verifying image...(no checkisomd5 in Ubuntu so skipping)!" #checkisomd5 --verbose $ISO if [ $? -ne 0 ]; then echo "Are you SURE you want to continue?" echo "Press Enter to continue or ctrl-c to abort" read fi fi # do some basic sanity checks. =20 checkSyslinuxVersion=20 checkFilesystem $USBDEV checkPartActive $USBDEV checkMBR $USBDEV [ -n $resetmbr ] && resetMBR $USBDEV # FIXME: would be better if we had better mountpoints CDMNT=3D$(mktemp -d /media/cdtmp.XXXXXX) mount -o loop $ISO $CDMNT || exitclean USBMNT=3D$(mktemp -d /media/usbdev.XXXXXX) mount $USBDEV $USBMNT || exitclean trap exitclean SIGINT SIGTERM if [ -d $USBMNT/casper ]; then echo "Already set up as live image. Deleting old in fifteen seconds.= =2E." sleep 15 rm -rf $USBMNT/casper fi echo "Copying live image to USB stick" if [ ! -d $USBMNT/$SYSLINUXPATH ]; then mkdir $USBMNT/$SYSLINUXPATH ; fi for file in \ README.diskdefines md5sum.txt \ .disk casper pool dists preseed install;do cp -a $CDMNT/$file $USBMNT/ done cp $CDMNT/isolinux/* $USBMNT/$SYSLINUXPATH echo "Installing boot loader" if [ "$USBFS" =3D "vfat" -o "$USBFS" =3D "msdos" ]; then # syslinux expects the config to be named syslinux.cfg=20 # and has to run with the file system unmounted mv $USBMNT/$SYSLINUXPATH/isolinux.cfg $USBMNT/$SYSLINUXPATH/syslinux.= cfg cleanup if [ -n "$SYSLINUXPATH" ]; then syslinux -d $SYSLINUXPATH $USBDEV else syslinux $USBDEV fi elif [ "$USBFS" =3D "ext2" -o "$USBFS" =3D "ext3" ]; then # extlinux expects the config to be named extlinux.conf # and has to be run with the file system mounted mv $USBMNT/$SYSLINUXPATH/isolinux.cfg $USBMNT/$SYSLINUXPATH/extlinux.= conf extlinux -i $USBMNT/syslinux cleanup fi echo "USB stick set up as live image!" --------------020905020701000202040403-- --------------enig84313876FFEC0C1156E3B6C4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHnRr7VY4JgoLSJBwRApKCAKCYGIH6gzuAxmRDQDx6oTRM2tk5pgCfRky5 kBO5EOhx+htWimRry3Wg0Fk= =gBfg -----END PGP SIGNATURE----- --------------enig84313876FFEC0C1156E3B6C4-- -- gentoo-releng@lists.gentoo.org mailing list