From owner-freebsd-hackers Tue Jul 21 09:05:45 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA16876 for freebsd-hackers-outgoing; Tue, 21 Jul 1998 09:05:45 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from tim.xenologics.com (tim.xenologics.com [194.77.5.24]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA16855 for ; Tue, 21 Jul 1998 09:05:37 -0700 (PDT) (envelope-from seggers@semyam.dinoco.de) Received: (from uucp@localhost) by tim.xenologics.com (8.8.5/8.8.8) with UUCP id SAA24430 for freebsd-hackers@FreeBSD.ORG; Tue, 21 Jul 1998 18:02:28 +0200 (MET DST) Received: from semyam.dinoco.de (semyam.dinoco.de [127.0.0.1]) by semyam.dinoco.de (8.8.8/8.8.8) with ESMTP id RAA05691; Tue, 21 Jul 1998 17:58:00 +0200 (CEST) (envelope-from seggers@semyam.dinoco.de) Message-Id: <199807211558.RAA05691@semyam.dinoco.de> To: freebsd-hackers@FreeBSD.ORG cc: seggers@semyam.dinoco.de Subject: How to check if slice is bootable? (for PR misc/7190) Date: Tue, 21 Jul 1998 17:58:00 +0200 From: Stefan Eggers Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi! Looking for a way to resolve PR misc/7190 I discovered that our slice code seems to have no provisions to get at the information of which partitions are bootable. Sure, this information doesn't make sense on all systems but on those that have such a flag it would be useful to be able to read it. Now the questions is how to resolve this problem with sysinstall as I don't think we can just say "don't make two FreeBSD slices with sys- install". What I prefer not to do but which is the cleanest way to make it work is fiddling with the slice code or adding another ioctl for this - most likely the latter. I am not keen on doing this. Or shall I just change libdisk to read the MBR directly? It does write it that way already and I don't think it would be that great a loss to do the same with reading. Stefan. -- Stefan Eggers Lu4 yao2 zhi1 ma3 li4, Max-Slevogt-Str. 1 ri4 jiu3 jian4 ren2 xin1. 51109 Koeln Federal Republic of Germany To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message