From owner-freebsd-current@freebsd.org Wed Jul 19 23:05:45 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 79FA0D965A2 for ; Wed, 19 Jul 2017 23:05:45 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 111A770549 for ; Wed, 19 Jul 2017 23:05:45 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: by mail-wm0-x22f.google.com with SMTP id w126so10749918wme.0 for ; Wed, 19 Jul 2017 16:05:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=CK8b1CCDJmE1U6C02QT5fnCbgIOlmlTz66r3gX1lgtM=; b=ez8RznCujUIF3ESCYOpgxTQ6ZHKdU+TT663wCyZUlgX0L+fGgRKAh3eHaM2ExOS84U dN8rQMUpk6twcRSzZX94CGbBvfDqsZ7YcZ73QIds1yhkYFyL27K/+i8+qZwcUTNDsJID f/NLWcWqqSk7TgzHU4FKdI2lgAwueX8sb1AthaZK2AzJUIQWlOYMp9RqlIq0vfdU/DUV /PP85SKbNStQbm5RUOKb5IcXYmoxZG09HCJIJ9ygN63Vykqjkh2s1t76g/vmpHq9ZkQD wUb4IYYiSy3AJgxN8Hgb30NjihWPU2FMRQ1zIkpJ7kKXW7w13nDQH4cP1ginm0DZw/IR 0v2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=CK8b1CCDJmE1U6C02QT5fnCbgIOlmlTz66r3gX1lgtM=; b=fJOBWoxGRzO2oG+2flvK0FTTH+Z0evA20rjqF45aOUPCFd51GOSUgAN9vf4qfCDa0U mJcMP52m6+rduBuMIhDmZNbcugapuesIQQBVcmQdm5uBDMkeiuCOFhJJ+GSnnydXz5ZJ 4oeWBgT1J/XU2eSvNyKn++4mYqhN11JDaw90rNKoQkHCaUXDJcTTcHsDgxydgU3aRAvO fIQjUWi1LQVgkp1ISV82NcRw75yWyMOJgyFR/x9HsaPvurIvpoRFbvYk/Rbpr1zqbtjU 4aeQUpc/IpyfPWnBn2EngTVn6X9SauE4Jht6J40SK/1WRuDq+sPsfdHFy4z08W/9DBHp VBpA== X-Gm-Message-State: AIVw113SKMK28oHEHKofj1gdI/LboCAlXlc/41zvDX3P40axm0BSBVwg CBb/mAzQ4rnY8154YY/ZQd52/u3NIer6 X-Received: by 10.80.195.21 with SMTP id a21mr1111058edb.144.1500505543138; Wed, 19 Jul 2017 16:05:43 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ben Woods Date: Wed, 19 Jul 2017 23:05:32 +0000 Message-ID: Subject: Re: [base pkg] update !GENERIC kernel To: Boris Samorodov , freebsd-current@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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: Wed, 19 Jul 2017 23:05:45 -0000 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. 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. Regards, Ben -- -- From: Benjamin Woods woodsb02@gmail.com