From owner-freebsd-emulation@FreeBSD.ORG Fri Jan 11 15:40:35 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 22A00461 for ; Fri, 11 Jan 2013 15:40:35 +0000 (UTC) (envelope-from decke@bluelife.at) Received: from mail-ob0-f174.google.com (mail-ob0-f174.google.com [209.85.214.174]) by mx1.freebsd.org (Postfix) with ESMTP id C474E1A9 for ; Fri, 11 Jan 2013 15:40:34 +0000 (UTC) Received: by mail-ob0-f174.google.com with SMTP id ta14so1846993obb.19 for ; Fri, 11 Jan 2013 07:40:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bluelife.at; s=google; h=mime-version:sender:x-originating-ip:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=FtSeu0UwrvkPqITfXN3EV/lt2hQksJChKQ3jKSvqCBg=; b=Yn6gYPq9jCjrScpyx4lXNPxZNAKrsA9DiFp+kEZcVAv8q6EXCypHd7C2f1ZfifGCn6 C2KcyPXvFrS/E58XJ08qxpE3ca5wE6cJcQfBDMiaJ5zAINOVYEtrvcK/B+TaJvMa4mpN Szj1ryCUoQClA1CR/q+jdBzgetNu4WUybyE9M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:x-originating-ip:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=FtSeu0UwrvkPqITfXN3EV/lt2hQksJChKQ3jKSvqCBg=; b=PQX6DqFBfbmOp3cKKvWYC+Zmm1C+dNfSoP3D7p5J2LwIp3W10Qy7jou693Qc3sWFSG hoK8GEgMcMhcw9dK7pMxkQ7MMDsFpBj09XAJ2Ufj+iynWipTAyJFNzjzoG8t7CMxd6W9 9ufGy92drMyQE1S3gtLUt3gPZq9Go8sUx/Kej6GSavlyIDaaG71hX5qtkkqQM8DFKRTa iRcN6OqG4hYRgGcl/zGUACDZT1fr/nC+D3bnHUDwh07HCQLXkYHe1Dpi/vc5ysGpw4sq tZjtTvWHE6h19MYRVVe5KyKT6TJHh4fHDia8934pPA10Nw+vrGhcr+6nv7Cv7x6oVQ7D lAbA== MIME-Version: 1.0 Received: by 10.60.7.129 with SMTP id j1mr44388988oea.54.1357918476000; Fri, 11 Jan 2013 07:34:36 -0800 (PST) Sender: decke@bluelife.at Received: by 10.76.87.163 with HTTP; Fri, 11 Jan 2013 07:34:35 -0800 (PST) X-Originating-IP: [80.123.233.199] In-Reply-To: References: Date: Fri, 11 Jan 2013 16:34:35 +0100 X-Google-Sender-Auth: LqJbJwDwQShe1103tWafqTh33dk Message-ID: Subject: Re: VirtualBox kernel modules From: =?ISO-8859-1?Q?Bernhard_Fr=F6hlich?= To: Brandon Gooch Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQkzEwpDh/4UAoM7cHc+TuHs4G+a+gqpgZcPMg4dgl3Pvj5hSHHx/FKJnoz0QGNexINF7K1X Cc: freebsd-emulation@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jan 2013 15:40:35 -0000 On Fri, Jan 11, 2013 at 4:19 PM, Brandon Gooch wrote: > On Thu, Jan 10, 2013 at 10:31 PM, Warren Block wrote: > >> On Thu, 10 Jan 2013, Ryan Stone wrote: >> >> As I recall, a make installkernel will first mv /boot/kernel >>> /boot/kernel.old >>> >>> Should ports put modules in /boot/modules to avoid this kind of thing? >>> >> >> I thought so, but the Porter's Handbook doesn't say anything about it. >> multimedia/cuse4bsd-kmod installs a module there. > > > The previous versions of this port did indeed install the modules into > /boot/modules; only with the most recent version (4.2.6) has this changed. > For example: > > $ tar tvf /usr/ports/packages/All/virtualbox-ose-kmod-4.1.22.txz > [...] > -r-xr-xr-x 0 root wheel 297288 Sep 19 09:19 /boot/modules/vboxdrv.ko > -r-xr-xr-x 0 root wheel 9544 Sep 19 09:19 /boot/modules/vboxnetadp.ko > -r-xr-xr-x 0 root wheel 26648 Sep 19 09:19 /boot/modules/vboxnetflt.ko > [...] > > $ tar tvf /usr/ports/packages/All/virtualbox-ose-kmod-4.2.6.txz > [...] > -r-xr-xr-x 0 root wheel 337912 Jan 6 13:13 /boot/kernel/vboxdrv.ko > -r-xr-xr-x 0 root wheel 9696 Jan 6 13:13 /boot/kernel/vboxnetadp.ko > -r-xr-xr-x 0 root wheel 26808 Jan 6 13:13 /boot/kernel/vboxnetflt.ko > [...] > > I don't know WHY this changed, or if it was just an oversight during the > update -- perhaps it by (re)design... I think this is an unwanted side effect. In fact I changed the defintion of where the kernel module should be installed in virtualbox-ose-kmod/Makefile from KMODDIR=/boot/modules to KMODDIR?=/boot/modules to allow overwriting the KMODDIR in case you want to have a non default directory for your kernel modules (like in a jail). I haven't found yet where KMODDIR is set to /boot/kernel but it obviously is defined somewhere. I'm also not sure if that is really a virtualbox problem or if we better should fix that in Mk and set KMODDIR or create a new variable for ports kernel modules. In the meantime overwriting KMODDIR to /boot/modules in your make.conf should help. -- Bernhard Froehlich http://www.bluelife.at/