Re: cvs commit: src/usr.sbin/sysinstall devices.c

[ Available lists | Index of cvs-all | Month of Nov 2002 | Week of 28 Nov 2002 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Dag-Erling Smorgrav <des@ofug.org>
Date
28 Nov 2002 06:56:14
Subject
Re: cvs commit: src/usr.sbin/sysinstall devices.c
Message-ID
xzpvg2hyc8l.fsf@flood.ping.uio.no

References to
Replies

[ Hide this part ]
John Baldwin <jhb@FreeBSD.org> writes:
> Log:
> Don't use fake 'c' or 'a' BSD partitions for CD-ROM devices. This fixes
> sysinstall to create /cdrom entries in /etc/fstab that just use the
> raw CD-ROM device /dev/cd0, etc.

I've also had this in my tree for ages:

Index: usr.sbin/cdcontrol/cdcontrol.c
===================================================================
RCS file: /home/ncvs/src/usr.sbin/cdcontrol/cdcontrol.c,v
retrieving revision 1.42
diff -u -r1.42 cdcontrol.c
--- usr.sbin/cdcontrol/cdcontrol.c 18 Oct 2002 22:03:38 -0000 1.42
+++ usr.sbin/cdcontrol/cdcontrol.c 20 Oct 2002 13:15:03 -0000
@@ -51,7 +51,7 @@
#define ASTS_VOID 0x15 /* No current audio status to return */

#ifndef DEFAULT_CD_DRIVE
-# define DEFAULT_CD_DRIVE "/dev/cd0c"
+# define DEFAULT_CD_DRIVE "/dev/cd0"
#endif

#ifndef DEFAULT_CD_PARTITION

Without this patch, you get

cdcontrol: no CD device name specified, defaulting to /dev/cd0c
cdcontrol: /dev/cd0cc: No such file or directory

DES
--
Dag-Erling Smorgrav - des@ofug.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message



Elapsed time: 0.144 seconds