From owner-freebsd-questions@freebsd.org Wed Nov 7 10:23:57 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C8D741122E8A for ; Wed, 7 Nov 2018 10:23:57 +0000 (UTC) (envelope-from aram.h@mgk.ro) Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B0B0F8B8F1 for ; Wed, 7 Nov 2018 10:23:56 +0000 (UTC) (envelope-from aram.h@mgk.ro) Received: by mail-qk1-x72a.google.com with SMTP id n12so20177580qkh.11 for ; Wed, 07 Nov 2018 02:23:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mgk-ro.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=YMMykoC6uHC7Ps0bYuUBQ4hAuX3Yc3nbO7p4U1nv0FM=; b=GY4/Uh9hbZMeH4T7F8hq1HYmXCFEBirBR98q4C6t1LEpl33b32S9K8lNeE5r749hga jM9hMs81T11579XTlcQMreB+xhmg+rZiLCiMNAwBZ7EidTF+WIxRqiM7CSVW63IGiBTj BO8VWBkrOcrcjWdhcxRRxtixvfrERJ/F8Xc6AnBmzTv7/qHGA6Cq5b0I+WeMIQgAM9+b QE5J14pVpIfiiKMjle5tSBELgY8BhSm1/LbxXeZhaL2B+M2rVBbyUrC4lkIMggwRajbX Px20cBPwnrnVfpTyQHO9AxDX1lbYGxdsyERgUlRqhZGdAbZlP5Iwy4g3cI0dWIwvL1Es Hl/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=YMMykoC6uHC7Ps0bYuUBQ4hAuX3Yc3nbO7p4U1nv0FM=; b=JOJ4pp3JhQ9H9j53PE3yXgrk4zQ4ZQj5Tl+X+jHkchlgmXvLqtgTd0/+fwF3Uizecz sMLhMUdHzc2/lyYTY+RjTTFhL4FGoPg0PKqUWp5MEuilhoFpRXECOeKLoIPJPC1qFiFc t/0xFrFSN1Dp6jHqHv/NFBzGUpe81lZhGpamSWI/Vh0UQ+vjZGZ29WhtBRGgQgqB8P2n wWQAADiXSFsYWK/VtGNqiWIdxGRpGfaWnsNR8uR6O8jKF6rY3BFhSkcrriBCeR39SUKz mQ8Ej5gSE9lt/ctkL8oN08ddOXJNVPHuquBhIXceTXkNJ/OtFRERKDfAXUQnW0L//Xxv y4KQ== X-Gm-Message-State: AGRZ1gKkrETPE1BnWfXa2/9Vq5uMbvUZ9Wy2LSUwUPxVPjfQBYZn6SJq tKyx2P/sz7DB7Wq1dm2TIMxpoaDOPOxcdCRaNQP0LuVX4uM= X-Google-Smtp-Source: AJdET5fkK8aM12jZ4MbA5B4zFR6mx07a/0cvK89Lt2lW4Yb0kr1OvERnyemQ/3OF2/dY7YN0leUBYWepuwibWdY3V8Q= X-Received: by 2002:a37:62d3:: with SMTP id w202mr934468qkb.357.1541586235997; Wed, 07 Nov 2018 02:23:55 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a0c:9dd2:0:0:0:0:0 with HTTP; Wed, 7 Nov 2018 02:23:35 -0800 (PST) In-Reply-To: <20181107092930.3f48e1cee7caeb670fe38a58@sohara.org> References: <20181106170818.GD88460@mordor.lan> <20181106174215.43746c0a0f28d86dd4ef0e14@sohara.org> <20181106223828.4e65f87c884b43c40f0231e3@sohara.org> <20181107092930.3f48e1cee7caeb670fe38a58@sohara.org> From: =?UTF-8?B?QXJhbSBIxIN2xINybmVhbnU=?= Date: Wed, 7 Nov 2018 11:23:35 +0100 Message-ID: Subject: Re: freebsd-update(8) and custom kernels To: "Steve O'Hara-Smith" Cc: freebsd-questions@freebsd.org X-Rspamd-Queue-Id: B0B0F8B8F1 X-Spamd-Result: default: False [-3.54 / 200.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.97)[-0.970,0]; R_DKIM_ALLOW(-0.20)[mgk-ro.20150623.gappssmtp.com]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.98)[-0.978,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[mgk.ro]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: alt1.aspmx.l.google.com]; DKIM_TRACE(0.00)[mgk-ro.20150623.gappssmtp.com:+]; RCVD_IN_DNSWL_NONE(0.00)[a.2.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.78)[-0.782,0]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-0.50)[ipnet: 2607:f8b0::/32(-1.05), asn: 15169(-1.35), country: US(-0.09)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Server: mx1.freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2018 10:23:58 -0000 I just checked, the new kernel sources are not installed by the first update. I tried this on a 10.4 system with a custom kernel: # uname -a FreeBSD ip-172-31-46-244 10.4-RELEASE-p13 FreeBSD 10.4-RELEASE-p13 #0: Wed Nov 7 09:12:40 UTC 2018 aram@ip-172-31-46-244:/usr/obj/usr/src/sys/FCTARGET amd64 # # freebsd-update -r 11.2-RELEASE upgrade # freebsd-update install Installing updates... Kernel updates have been installed. Please reboot and run "/usr/sbin/freebsd-update install" again to finish installing updates. At this point the new kernel sources are *NOT* installed. There is no point in recompiling the kernel here, as you will recompile the old (10.4) kernel. If you reboot now, you will get the new (11.2) GENERIC kernel, not the custom kernel. After reboot: # uname -a FreeBSD ip-172-31-46-244 11.2-RELEASE-p4 FreeBSD 11.2-RELEASE-p4 #0: Thu Sep 27 08:16:24 UTC 2018 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 We can now run freebsd-update install again, to finish the upgrade. After that is finished, we can now recompile and reinstall the custom kernel. $ cd /usr/src $ make buildkernel -j32 KERNCONF=3DFCTARGET $ sudo make installkernel KERNCONF=3DFCTARGET $ sudo reboot After reboot we'll have our custom 11.2 kernel. As you can see, we had to boot into GENERIC to do the update. The kernel sources were not updated by freebsd-update(8) in the first invocation, only by the second one, after the GENERIC kernel was installed and booted. --=20 Aram H=C4=83v=C4=83rneanu