From nobody Sun Nov 13 04:42:25 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N90DF1c8Kz4hR1W for ; Sun, 13 Nov 2022 04:42:37 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N90DF0wT0z3CC5 for ; Sun, 13 Nov 2022 04:42:37 +0000 (UTC) (envelope-from kevans@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668314557; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TPqiqoJ1xEVUVrkzEjp2p9q0x7qyZA5Fhe1Xnoi6CYg=; b=ihMztwsl99xow0Z7lerqpMgZqZCOOLDL6RQPdt4V7D0Bib2k1AafgzvXL4Ui3QFsJaq6qj dGxcGzC6wc49W1v6pumavs+Ry5O8f6wrMqAyXFTE6j3oKPDHPMIdiMXN33yP4O2szA2rbE 9r7O5eVNoUHtKV7nqcyEeX5RJwTKrFr9oikw/XUqfdmzidL2z41toP5JmTSwuGaqKf0FvD asvVPO2bEquc8gbz68FWhH/IAqcesXiVmPWGstGHNMWZdCBghwAopaagGHEvaQzPXY6Hg/ 9SlS8B3RVJOYgVETVkyAfJpTrkeFGcBaQTDouC59E0PF6Rtd9rDjdTtjShPDGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668314557; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TPqiqoJ1xEVUVrkzEjp2p9q0x7qyZA5Fhe1Xnoi6CYg=; b=yhYdIz0F+L+MXebuV2YjDsbQWE5nxamvxwjGtIX+vCGShFWQrkXIhivvl9iBe4JJHGGTxG ycQJTL6LY57ER3Y8EO2v+t6SkyMnRR3s3glH3WhjAZZ5qVaR5lh7JCrmrx8tp8YZ03loPP y7DDiid8fgFWm+MzcsBRS5nZozyJ3HeBK0Cu5uddULuA60Pmhl0cCUFywnyS5o7/k5sw7H bqdgexbYK2uY2lduyEvMeq1Nx4g/LUSuGRzw+0es0lLLFDIRIvw1q+iUgDiGRE2ehn1MrX Z5aQeXyRsyOKRgDsxMKzh5ag4GaUrlFuxH/dOtEZoNGym1BYAIvvE8UKTEUjKA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668314557; a=rsa-sha256; cv=none; b=xpf/5Zw2anFTi4aAQiNBkBZ9x4mCzAOgJ7F2PD7csxM/aMwrjUO0fgXeloxRweXXIz63IB SV+9TvKiCf3laOi/0k1kZVWJYtXuKa5EUNCs9zf2Tbug9hrHBGwmrwODIxhuPzAIkgEpwm aBxJ7Cs23l4fu51+e2Cdjmw6oOC9ug3+4VnKvbB4i5zGLNhPRAOgI+E6XoYem0XPHFW3rD 4KSAII4i/P+GPrbAPAGTELjuvJ1e9539/L0dPzf38E4S1LV1o2JnrszQx3+WhgbLNpIggT 7cgHxsMUfnQYzAVvA026yDHcOdbxZHRhh7HCv4u9ZSL1Ajcq4bfNpO44i4lrwQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from mail-qv1-f54.google.com (mail-qv1-f54.google.com [209.85.219.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id 4N90DD72YHzkV5 for ; Sun, 13 Nov 2022 04:42:36 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-qv1-f54.google.com with SMTP id w10so6027565qvr.3 for ; Sat, 12 Nov 2022 20:42:36 -0800 (PST) X-Gm-Message-State: ANoB5pkbr4RWfqJxaFpRljoPE/N+dZo9gh+JPRMOcSlC8UW0yrl7sYKE Xw6zRo/1op9aEioF6m2X3IEumX89Kq4qfrH3AOQ= X-Google-Smtp-Source: AA0mqf7DuB00+4YXHv/XEZMZFTANM0ImqNUve+yQd5wl5oPjwqU9u2x8mmymFCwiPvWmRiAbwQI6xMfjSZPBjSadgFY= X-Received: by 2002:ad4:5442:0:b0:4c6:1029:a36e with SMTP id h2-20020ad45442000000b004c61029a36emr8061500qvt.90.1668314556060; Sat, 12 Nov 2022 20:42:36 -0800 (PST) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Kyle Evans Date: Sat, 12 Nov 2022 22:42:25 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Odd sysctl -d kern.bootfile result To: Mark Millard Cc: freebsd-current Content-Type: text/plain; charset="UTF-8" X-ThisMailContainsUnwantedMimeParts: N On Sat, Nov 12, 2022 at 10:16 PM Mark Millard wrote: > > The context: > > # ls -Tldt /boot/kern*/kernel > -r-xr-xr-x 1 root wheel 40003240 Nov 6 16:32:05 2022 /boot/kernel/kernel > -r-xr-xr-x 1 root wheel 39990232 Jul 6 11:21:16 2022 /boot/kernel.old/kernel > -r-xr-xr-x 1 root wheel 31401824 Aug 19 03:16:29 2021 /boot/kernel.dbg/kernel > > # uname -apKU # Note: output line split for readability > FreeBSD amd64_ZFS 14.0-CURRENT FreeBSD 14.0-CURRENT #55 > main-n259064-f83db6441a2f-dirty: Sun Nov 6 16:31:55 PST 2022 > root@amd64_ZFS:/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/sys/GENERIC-NODBG > amd64 amd64 1400073 1400073 > > > But . . . > > # sysctl -d kern.bootfile > kern.bootfile: Name of kernel file booted > > # sysctl -W kern.bootfile > kern.bootfile: /boot/kernel.old/kernel > > Looks wrong to me. (I've never explicitly assigned to kern.bootfile .) > The usual suspect here is that you did an `installkernel` -- if it replaces kern.bootfile, it moves the old kern.bootfile to /boot/kernel.old and updates the sysctl to reflect the new location so that it still accurately reflects the booted kernel. Thanks, Kyle Evans