From owner-svn-src-head@FreeBSD.ORG Sat Jul 31 19:27:44 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 33C21106566B; Sat, 31 Jul 2010 19:27:44 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 091AB8FC18; Sat, 31 Jul 2010 19:27:44 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o6VJRhpb072479; Sat, 31 Jul 2010 19:27:43 GMT (envelope-from imp@svn.freebsd.org) Received: (from imp@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o6VJRhQU072477; Sat, 31 Jul 2010 19:27:43 GMT (envelope-from imp@svn.freebsd.org) Message-Id: <201007311927.o6VJRhQU072477@svn.freebsd.org> From: Warner Losh Date: Sat, 31 Jul 2010 19:27:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r210701 - head/usr.sbin/pc-sysinstall/backend X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Jul 2010 19:27:44 -0000 Author: imp Date: Sat Jul 31 19:27:43 2010 New Revision: 210701 URL: http://svn.freebsd.org/changeset/base/210701 Log: Fixes a bug when installing with a ZFS on root (/) and UFS /boot partition. Don't stamp the zfs boot-loader in this case. Submitted by: kris moore Modified: head/usr.sbin/pc-sysinstall/backend/functions-newfs.sh Modified: head/usr.sbin/pc-sysinstall/backend/functions-newfs.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend/functions-newfs.sh Sat Jul 31 19:25:51 2010 (r210700) +++ head/usr.sbin/pc-sysinstall/backend/functions-newfs.sh Sat Jul 31 19:27:43 2010 (r210701) @@ -61,6 +61,7 @@ setup_zfs_filesystem() # Check if we ended up with needing a zfs bootable partition if [ "${i}" = "/" -o "${i}" = "/boot" ] then + if [ "$HAVEBOOT" = "YES" ] ; then continue ; fi if [ "${PARTGEOM}" = "MBR" ] then # Lets stamp the proper ZFS boot loader @@ -129,6 +130,11 @@ setup_filesystems() rc_halt "sync" rc_halt "glabel label ${PARTLABEL} /dev/${PART}${EXT}" rc_halt "sync" + + # Set flag that we've found a boot partition + if [ "$PARTMNT" = "/boot" -o "${PARTMNT}" = "/" ] ; then + HAVEBOOT="YES" + fi sleep 2 ;; UFS+S) echo_log "NEWFS: /dev/${PART} - ${PARTFS}" @@ -138,6 +144,10 @@ setup_filesystems() rc_halt "sync" rc_halt "glabel label ${PARTLABEL} /dev/${PART}${EXT}" rc_halt "sync" + # Set flag that we've found a boot partition + if [ "$PARTMNT" = "/boot" -o "${PARTMNT}" = "/" ] ; then + HAVEBOOT="YES" + fi sleep 2 ;; UFS+J) echo_log "NEWFS: /dev/${PART} - ${PARTFS}" @@ -151,6 +161,10 @@ setup_filesystems() rc_halt "sync" rc_halt "glabel label ${PARTLABEL} /dev/${PART}${EXT}.journal" rc_halt "sync" + # Set flag that we've found a boot partition + if [ "$PARTMNT" = "/boot" -o "${PARTMNT}" = "/" ] ; then + HAVEBOOT="YES" + fi sleep 2 ;; ZFS) echo_log "NEWFS: /dev/${PART} - ${PARTFS}"