From owner-freebsd-questions@FreeBSD.ORG Mon Mar 13 05:36:43 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D9E4016A401 for ; Mon, 13 Mar 2006 05:36:43 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout2.cac.washington.edu (mxout2.cac.washington.edu [140.142.33.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B7DB43D45 for ; Mon, 13 Mar 2006 05:36:43 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout2.cac.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k2D5agGn028822 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 12 Mar 2006 21:36:42 -0800 X-Auth-Received: from [128.208.4.22] (shiina.dyn.cs.washington.edu [128.208.4.22]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k2D5agvK019585 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sun, 12 Mar 2006 21:36:42 -0800 In-Reply-To: <00c601c6465a$60431d90$6401a8c0@chris> References: <00c601c6465a$60431d90$6401a8c0@chris> Mime-Version: 1.0 (Apple Message framework v746.2) X-Priority: 3 Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Garrett Cooper Date: Sun, 12 Mar 2006 21:38:29 -0800 To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.746.2) X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HAS_X_PRIORITY 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __STOCK_CRUFT 0' Subject: Re: make installkernel doesn't work? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Mar 2006 05:36:44 -0000 On Mar 12, 2006, at 8:55 PM, Cstdenis wrote: > I don't get it. I'm trying to switch from a custom kernel named > SERVER to a > generic kernel. > > %uname -imrs > FreeBSD 6.0-RELEASE-p4 amd64 SERVER > > cd /usr/src > make clean > rm -rf /usr/obj > make buildkernel > make installkernel > > %sysctl kern.ident > kern.ident: SERVER > > Why isn't the GENERIC kernel taking effect? The make installkernel > does say > generic. > > -------------------------------------------------------------- >>>> Installing kernel > -------------------------------------------------------------- > cd /usr/obj/usr/src/sys/GENERIC; MAKEOBJDIRPREFIX=/usr/obj > MACHINE_ARCH=amd64 MACHINE=amd64 CPUTYPE= > GROFF_BIN_PATH=/usr/obj/usr/src/tmp/legacy/usr/bin > GROFF_FONT_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/groff_font > GROFF_TMAC_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/tmac > PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/ > legacy/usr/bi > n:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/ > sbin:/usr/o > bj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/sbin:/bin:/ > usr/sbin:/ > usr/bin make KERNEL=kernel install > thiskernel=`sysctl -n kern.bootfile` ; if [ ! "`dirname > "$thiskernel"`" -ef > /boot/kernel ] ; then chflags -R noschg /boot/kernel ; rm -rf / > boot/kernel > ; else if [ -d /boot/kernel.old ] ; then chflags -R noschg > /boot/kernel.old ; rm -rf /boot/kernel.old ; fi ; mv /boot/kernel > /boot/kernel.old ; sysctl kern.bootfile=/boot/kernel.old/"`basename > "$thiskernel"`" ; fi > kern.bootfile: /boot/kernel/kernel -> /boot/kernel.old/kernel > mkdir -p /boot/kernel > install -p -m 555 -o root -g wheel kernel /boot/kernel > cd /usr/src/sys/modules; > MAKEOBJDIRPREFIX=/usr/obj/usr/src/sys/GENERIC/modules KMODDIR=/boot/ > kernel > DEBUG_FLAGS="-g" MACHINE=amd64 KERNBUILDDIR="/usr/obj/usr/src/sys/ > GENERIC" > make install > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions- > unsubscribe@freebsd.org" grep KERNCONF /etc/make.conf yields what? Also, are you making your kernel via a script? -Garrett