Date: Tue, 17 Aug 2010 09:52:23 +0200 (CEST) From: Thomas Quinot <thomas@cuivre.fr.eu.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: misc/149729: [patch] nanoBSD: support for NANO_DRIVE including a slash Message-ID: <20100817075223.1E9743137@melamine.cuivre.fr.eu.org> Resent-Message-ID: <201008170800.o7H803Ia018009@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100817075223.1E9743137>
