misc/122300: SEPARATE_LIVEFS arch dependent set but unclear
Harald Schmalzbauer
harry at omnisec.de
Mon Mar 31 11:10:02 PDT 2008
>Number: 122300
>Category: misc
>Synopsis: SEPARATE_LIVEFS arch dependent set but unclear
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: doc-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Mar 31 18:10:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Harald Schmalzbauer
>Release: FreeBSD 7.0-STABLE i386
>Organization:
OmniSEC
>Environment:
System: FreeBSD titan.flintsbach.schmalzbauer.de 7.0-STABLE FreeBSD 7.0-STABLE #1: Thu Mar 27 09:36:49 CET 2008 root at titan.flintsbach.schmalzbauer.de:/usr/obj/usr/src/sys/TITAN i386
>Description:
In release/Makefile for all target architectures besides sparc64
SEPARATE_LIVEFS ist defined without true or false and evaluated by ifdef.
So at a fisrt look it seems SEPARATE_LIVEFS ist _not_ set, but a closer look
shows the opposite.
I don't know why LIVEFS is not on disc1 by default any more, but making that
more clear by setting SEPARATE_LIVEFS to true may help some peaople not too
familar with release process.
>How-To-Repeat:
Watch line 195 in src/release/Makefile an the corresponding evaluation
in line 267, 494 with 498, 970 and 1056
>Fix:
The following patch has no functional change but makes the setting more
obvious:
--- src/release/Makefile.orig 2008-03-31 19:49:09.000000000 +0200
+++ src/release/Makefile 2008-03-31 19:49:53.000000000 +0200
@@ -192,7 +192,7 @@
.undef MAKE_FLOPPIES
.if ${TARGET_ARCH} == "i386"
MAKE_FLOPPIES= true
-SEPARATE_LIVEFS=
+SEPARATE_LIVEFS= true
SPLIT_MFSROOT=
.if ${TARGET} == "pc98"
SMALLFLOPPYSIZE= 1200
@@ -218,7 +218,7 @@
MFSSIZE= 8192
MFSINODE= 8192
MFSLABEL= auto
-SEPARATE_LIVEFS=
+SEPARATE_LIVEFS= true
.elif ${TARGET_ARCH} == "amd64"
MAKE_FLOPPIES= true
FLOPPYSIZE= 1440
@@ -229,14 +229,14 @@
MFSSIZE= 4096
MFSINODE= 8192
MFSLABEL= auto
-SEPARATE_LIVEFS=
+SEPARATE_LIVEFS= true
SPLIT_MFSROOT=
.elif ${TARGET_ARCH} == "powerpc"
DISKLABEL= ""
MFSSIZE= 4096
MFSINODE= 8192
MFSLABEL= auto
-SEPARATE_LIVEFS=
+SEPARATE_LIVEFS= true
.endif
.if defined(NO_FLOPPIES)
.undef MAKE_FLOPPIES
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list