misc/149729: [patch] nanoBSD: support for NANO_DRIVE including a slash

Thomas Quinot thomas at cuivre.fr.eu.org
Tue Aug 17 08:00:04 UTC 2010


>Number:         149729
>Category:       misc
>Synopsis:       [patch] nanoBSD: support for NANO_DRIVE including a slash
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 17 08:00:03 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Thomas Quinot
>Release:        FreeBSD 8.0-STABLE amd64
>Organization:
>Environment:
System: FreeBSD melamine.cuivre.fr.eu.org 8.0-STABLE FreeBSD 8.0-STABLE #0: Sun Mar 28 14:46:11 CEST 2010 thomas at melamine.cuivre.fr.eu.org:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
	This minor change allows NANO_DRIVE to contain a /, which is useful
	if you want to use UFS labels (NANO_DRIVE=ufs/NANO, labeling
	the filesystems NANOs1a, NANOs2a, NANOs3, NANOs4).

>How-To-Repeat:
	
>Fix:

Index: nanobsd.sh
===================================================================
--- nanobsd.sh	(révision 211410)
+++ nanobsd.sh	(copie de travail)
@@ -503,7 +503,7 @@
 		mount /dev/${MD}s2a ${MNT}
 		for f in ${MNT}/etc/fstab ${MNT}/conf/base/etc/fstab
 		do
-			sed -i "" "s/${NANO_DRIVE}s1/${NANO_DRIVE}s2/g" $f
+			sed -i "" "s#${NANO_DRIVE}s1#${NANO_DRIVE}s2#g" $f
 		done
 		umount ${MNT}
 	fi


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list