Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Feb 1998 17:40:27 -0800 (PST)
From:      harold barker <hbarker@jsnet.com>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   misc/5662: sysinstall generates short dev names for all slices on root dev when run with install.cfg
Message-ID:  <199802060140.RAA02838@s1.jsnet.com>

next in thread | raw e-mail | index | archive | help

>Number:         5662
>Category:       misc
>Synopsis:       sysinstall generates short dev names for all slices on root dev when run with install.cfg
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb  5 18:10:01 PST 1998
>Last-Modified:
>Originator:     harold barker
>Organization:
dsms.com
>Release:        FreeBSD 2.2.5-RELEASE i386
>Environment:

sysinstall from boot floppy using install.cfg with one ide disk

>Description:

in /usr/src/release/sysinstall/config.c at ~ line 111 

All partitions have there name shortened as if they are the root partition.  
c1->flags may ahve CHUNK_IS_ROOT set.  not sure.




>How-To-Repeat:

	

>Fix:

Raal simple fix. non optimal, gets a working fstab.

root@build:sysinstall[567] cvs diff config.c                    
Index: config.c
===================================================================
RCS file: /lhome/cvs_root_freebsd/src/release/sysinstall/config.c,v
retrieving revision 1.51.2.56
diff -r1.51.2.56 config.c
110,111c110,112
<     if (c1->type == part && c1->flags & CHUNK_IS_ROOT) {
<         sprintf(rootname, "%sa", c1->disk->name);
---
>       /*    if (c1->type == part && c1->flags & CHUNK_IS_ROOT) {*/
>     if( c1->type == part && ( strcmp( "/", ((PartInfo *)c1->private_data)->mountpoint ) == 0 ) ) {
>           sprintf(rootname, "%sa", c1->disk->name);


>Audit-Trail:
>Unformatted:



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