From owner-freebsd-questions@freebsd.org Tue Nov 6 23:12:51 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 B280611043BE for ; Tue, 6 Nov 2018 23:12:51 +0000 (UTC) (envelope-from aram.h@mgk.ro) Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) (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 C79F974B4C for ; Tue, 6 Nov 2018 23:12:50 +0000 (UTC) (envelope-from aram.h@mgk.ro) Received: by mail-qk1-x736.google.com with SMTP id n12so19508637qkh.11 for ; Tue, 06 Nov 2018 15:12:50 -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:content-transfer-encoding; bh=2skaywW2towYvoEfMFbLNHcLf0rCbgHVcNW8tMJXFvk=; b=XER/U3M9wiKF1Hz0SeIcoK9/NSUfbjMBmALF08zyrrr50c3gMTpBJ5nn137yPNYXcS VIoiDnu1/gL9aVeIaSQd9DJR/EzwVFteKOrUxfhbR784c+vHC5mV+sbcIbzNJzERxGex QamleJgNx3haSZ+eOHjjCRJzK8AZVe98NVTyWJHls5xlIEnix/60EqQ8BfYHHsN3jRsG nI/DX5yAY2nHO3H+ihL2brT0WjtjOHXueHx68qGtyekKNs9gdgEDP+zCZHuWQyo94Ihb ndU6ixp84LhY2uQXqLdT1SWCvbWMk2V+qJvShjWQgyBwvqa2ovdSD58dlJADbiwfCl3x tUtQ== 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:content-transfer-encoding; bh=2skaywW2towYvoEfMFbLNHcLf0rCbgHVcNW8tMJXFvk=; b=X77CInV1zGAlq6kp9hgHk0eBrK0RkkH8HG2STTdiWkqI4rPpY7mGOn2MR7EdXCpiBi u2+tKKlYXaELMcNS54ckOMtpFdF2Nj+7MUIe0kwmQ3Cc7CrR8XogJ9lWdIe/9EAfGaot 1F9MjD+vhz+KssZxZFPYPxfouvbobqDyBNGgMlo/7FaqFhv4cAt0b6IvASBKHLEnW1fh OpXItWpRX2fbXhpNExxE6WYt1/h39TMJgzxUhMVoHeTFrKk/B05udSHO53eeUSEHOo8e uTumsyl0LvFrjMZf7/sN9VQTL4yoMf79mwRr9jsnBm3+nayRXMOKpNzNc2pUfW/ylJYt asPg== X-Gm-Message-State: AGRZ1gJHff3vq1JotL4bDSo79zVE6EdgXP3i3+ZT/HqJ5BM1F03N//pg Wt7WFSIXm63zwXEnC1AkCiBVCTOODhRrEuHOkTPSXW9TU+M= X-Google-Smtp-Source: AJdET5cnPCgWX8gAYdosgFW/yjTtQYAf71NeAhESM0+dAxSzSjnjbNhE9eW5NCrf/NAz1T7RUEGClIu3yVgb8TOLznI= X-Received: by 2002:a37:182a:: with SMTP id j42mr25894746qkh.83.1541545970103; Tue, 06 Nov 2018 15:12:50 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a0c:9dd2:0:0:0:0:0 with HTTP; Tue, 6 Nov 2018 15:12:29 -0800 (PST) In-Reply-To: <20181106223828.4e65f87c884b43c40f0231e3@sohara.org> References: <20181106170818.GD88460@mordor.lan> <20181106174215.43746c0a0f28d86dd4ef0e14@sohara.org> <20181106223828.4e65f87c884b43c40f0231e3@sohara.org> From: =?UTF-8?B?QXJhbSBIxIN2xINybmVhbnU=?= Date: Wed, 7 Nov 2018 00:12:29 +0100 Message-ID: Subject: Re: freebsd-update(8) and custom kernels To: "Steve O'Hara-Smith" Cc: freebsd-questions@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: C79F974B4C X-Spamd-Result: default: False [-3.46 / 200.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.97)[-0.971,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.96)[-0.958,0]; MIME_GOOD(-0.10)[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)[6.3.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.68)[-0.677,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.54)[ipnet: 2607:f8b0::/32(-1.24), asn: 15169(-1.39), country: US(-0.08)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Server: mx1.freebsd.org 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: Tue, 06 Nov 2018 23:12:51 -0000 > Building the kernel doesn't need the new binaries, otherwise a > source upgrade would be impossible. I was under the impression that building across releases was not recommended and/or fragile. From /usr/src/UPDATING: NOTE: FreeBSD has switched from gcc to clang. If you have trouble bootstrapping from older versions of FreeBSD, try WITHOUT_CLANG and WITH_GCC to bootstrap to the tip of head, and then rebuild without this option. The bootstrap process from older version of current across the gcc/clang cutover is a bit fragile. > The first install must install sources as well as the GENERIC kernel. Does it do that? According to the documentation, it only installs the new kernel. Other components (which I read as also the src component) are installed only by the second invocation, after you have booted the new kernel. Is this another case of the documentation being outdated? > No, I never boot into GENERIC, the procedure is exactly as Julien > described apart from the extra make install after the reboot. What extra make install? To recapitulate: This is how it works with GENERIC kernel: freebsd-update -r XX.Y-RELEASE upgrade freebsd-update install reboot freebsd-update install This is how Julian said it works for him with the custom kernel, except I replaced fetch with upgrade: 1) freebsd-update -r XX.Y-RELEASE upgrade 2) freebsd-update install 3) make kernel KERNCONF=3DMYKERNEL 4) reboot 5) freebsd-update install In my understanding in step #3 you don't have the new sources yet, so how do you compile the new kernel? Or do you have them? Thanks, --=20 Aram H=C4=83v=C4=83rneanu