From owner-freebsd-current@freebsd.org Thu Jul 20 21:49:35 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5F51BCFCC7E for ; Thu, 20 Jul 2017 21:49:35 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from forward4m.cmail.yandex.net (forward4m.cmail.yandex.net [IPv6:2a02:6b8:b030::1b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 19EF27DAA6 for ; Thu, 20 Jul 2017 21:49:34 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from smtp4p.mail.yandex.net (smtp4p.mail.yandex.net [IPv6:2a02:6b8:0:1402::15:6]) by forward4m.cmail.yandex.net (Yandex) with ESMTP id 3614020D62; Fri, 21 Jul 2017 00:49:22 +0300 (MSK) Received: from smtp4p.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp4p.mail.yandex.net (Yandex) with ESMTP id 7A73165008B8; Fri, 21 Jul 2017 00:49:20 +0300 (MSK) Received: by smtp4p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id V64B6MRxp0-nKa4GQJv; Fri, 21 Jul 2017 00:49:20 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=passap.ru; s=mail; t=1500587360; bh=Uc4BfCZ2058MJIW1kjlRwiG1xB1JjaEQmgED83/JTLQ=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=cXtRiDUfLQFy8733wi48mOWjChQA1aZFEiqTSDMN7AqOx7bXpzeFvedJM8s7219wR pcomIBcSYYzGwG4cZXPNQobhPsoexNedbH2ZnvyL/oAIaAYnVotcrnzTIGSR+BHeFH RIrdjmvcqZvP1+7oqTq/UeaSZGKx287PeiYGnoZY= Authentication-Results: smtp4p.mail.yandex.net; dkim=pass header.i=@passap.ru X-Yandex-Suid-Status: 1 0,1 0 Subject: Re: [base pkg] update !GENERIC kernel To: Ben Woods , freebsd-current@freebsd.org References: From: Boris Samorodov Message-ID: <8b022ffd-4ce2-c92e-7573-270123ff6fde@passap.ru> Date: Fri, 21 Jul 2017 00:49:20 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: ru-RU Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jul 2017 21:49:35 -0000 20.07.2017 02:05, Ben Woods пишет: > On Wed, 19 Jul 2017 at 7:37 pm, Boris Samorodov wrote: > >> Hi All, >> >> I use self-made base packages for an ARM board. The kernel I use >> is IMX6 one. While pkg update I get this: >> --- >> [271/302] Upgrading FreeBSD-kernel-imx6-debug from 12.0.s20170718113533 >> to 12.0.s20170719070514... >> [271/302] Extracting FreeBSD-kernel-imx6-debug-12.0.s20170719070514: >> 100% >> kldxref: //boot/kernel: No such file or directory >> pkg: POST-INSTALL script failed >> [272/302] Upgrading FreeBSD-kernel-imx6 from 12.0.s20170718113533 to >> 12.0.s20170719070514... >> [272/302] Extracting FreeBSD-kernel-imx6-12.0.s20170719070514: 100% >> >> kldxref: //boot/kernel: No such file or directory >> pkg: POST-INSTALL script failed >> --- >> >> All is fine except those messages. >> >> There is no /boot/kernel, but there is /boot/kernel.IMX6. The kernel >> is defined at /boot/loader.conf: >> --- >> kernel="kernel.IMX6" >> --- >> >> Seems that for now pkg can't handle non-default kernel. Should I just >> ignore those messages? Or should I run some post-update commands/scripts >> by hand? > > > I had the same problem on my machine using pkg-base with a non-default > named kernel package. > > As a workaround, I created a symlink at /boot/kernel pointing to the > correct kernel directory. This seemed to fix the problem, but required this > manual intervention. Yep, I've end up doing the same. Thank you. > It would be good if this wasn't required, and the kernel package used the > kernel parameter in loader.conf to determine where to run the post-install > script. -- WBR, bsam