Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Dec 1997 22:50:47 -0800 (PST)
From:      "Jordan K. Hubbard" <jkh@FreeBSD.ORG>
To:        current@FreeBSD.ORG
Subject:   I'd like to remove this, any objections?
Message-ID:  <199712280650.WAA29358@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
Index: MAKEDEV
===================================================================
RCS file: /home/ncvs/src/etc/etc.i386/MAKEDEV,v
retrieving revision 1.142
diff -u -r1.142 MAKEDEV
--- MAKEDEV	1997/12/19 14:14:18	1.142
+++ MAKEDEV	1997/12/28 06:45:16
@@ -271,7 +271,6 @@
 			oldslice=$slice
 			slice=$(($slice+1))
 			slicename=`dkitos $slice`
-			rm -f  $name$unit$slicename* r$name$unit$slicename*
 			minor=`dkminor 0 $unit $slice $dkrawpart`
 			mknod  $name$unit$slicename b $blk $minor
 			mknod r$name$unit$slicename c $chr $minor

Yes, this is the line in MAKEDEV which will totally roast your existing
slice device entries if you're foolish enough to call MAKEDEV with anything
which defaults to the same drive/slice combination (and it's not immediately
obvious to the beginner just now many ways there are to do this).

Sure I also know why the rm was added in the first place, but I think
that the cure is worse than the disease in this case.  I've watched so
many folks hang themselves on this one it's not funny (sysinstall creates the
initial slice entries and, for many, it's never even known that MAKEDEV
does anything special for slice sub-entries).

Comments?

					Jordan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712280650.WAA29358>