From owner-freebsd-bugs Thu Feb 5 18:10:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA22777 for freebsd-bugs-outgoing; Thu, 5 Feb 1998 18:10:03 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA22770; Thu, 5 Feb 1998 18:10:02 -0800 (PST) (envelope-from gnats) Received: from s1.jsnet.com (s1.jsnet.com [207.82.57.167]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA22213 for ; Thu, 5 Feb 1998 18:06:06 -0800 (PST) (envelope-from hbarker@jsnet.com) Received: (from root@localhost) by s1.jsnet.com (8.8.7/8.8.6.js3) id RAA02838; Thu, 5 Feb 1998 17:40:27 -0800 (PST) Message-Id: <199802060140.RAA02838@s1.jsnet.com> Date: Thu, 5 Feb 1998 17:40:27 -0800 (PST) From: harold barker Reply-To: hbarker@dsms.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: misc/5662: sysinstall generates short dev names for all slices on root dev when run with install.cfg Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe freebsd-bugs" >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: