>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 
tho...@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:
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to