From nobody Mon Nov 07 11:01:54 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 4N5Sws0Shtz4ggmW for ; Mon, 7 Nov 2022 11:02:05 +0000 (UTC) (envelope-from dchagin@heemeyer.club) Received: from heemeyer.club (heemeyer.club [195.93.173.158]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4N5Swq5xHrz3sWh; Mon, 7 Nov 2022 11:02:03 +0000 (UTC) (envelope-from dchagin@heemeyer.club) Received: from heemeyer.club (localhost [127.0.0.1]) by heemeyer.club (8.17.1/8.16.1) with ESMTP id 2A7B1tWZ001472; Mon, 7 Nov 2022 14:01:55 +0300 (MSK) (envelope-from dchagin@heemeyer.club) Received: (from dchagin@localhost) by heemeyer.club (8.17.1/8.16.1/Submit) id 2A7B1s9g001471; Mon, 7 Nov 2022 14:01:54 +0300 (MSK) (envelope-from dchagin) Date: Mon, 7 Nov 2022 14:01:54 +0300 From: Dmitry Chagin To: Graham Perrin Cc: freebsd-current@freebsd.org Subject: Re: linsysfs on /usr/src/sys (linsysfs, local) Message-ID: References: <3e925370-3f09-101d-e4f3-5fa2c7f28c83@freebsd.org> <8e3e8a1f-495e-6c53-7450-5e22e6b50025@freebsd.org> 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 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8e3e8a1f-495e-6c53-7450-5e22e6b50025@freebsd.org> X-Rspamd-Queue-Id: 4N5Swq5xHrz3sWh X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of dchagin@heemeyer.club has no SPF policy when checking 195.93.173.158) smtp.mailfrom=dchagin@heemeyer.club X-Spamd-Result: default: False [-2.09 / 15.00]; AUTH_NA(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.995]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; R_SPF_NA(0.00)[no SPF record]; ARC_NA(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:61400, ipnet:195.93.173.0/24, country:RU]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[heemeyer.club]; FREEFALL_USER(0.00)[dchagin]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Mon, Nov 07, 2022 at 03:03:25AM +0000, Graham Perrin wrote: > On 29/10/2022 21:30, Graham Perrin wrote: > > > Subject: poudriere jail update from source: syscall.mk does not exist > > > After updating to yesterday's > > aba921bd9e1869dae9ae4cc6e0c048f997401034, I aimed for a routine update > > of the jail that I used for poudriere. > > > > > > poudriere jail -u -J 1 -j main > > … > > ===> lib/libc (install) > > make[5]: "/usr/src/lib/libc/sys/Makefile.inc" line 9: Cannot open > > /usr/src/sys/sys/syscall.mk > > make[5]: Fatal errors encountered -- cannot continue > > make[5]: stopped in /usr/src/lib/libc > > *** Error code 1 > > … > > > bdrewery and others in IRC helped me to realise an offending mount. > > > With linux_enable: YES, > > root@mowa219-gjp4-8570p-freebsd:~ # mount | grep sys > linsysfs on /usr/src/sys (linsysfs, local) > root@mowa219-gjp4-8570p-freebsd:~ # exit > logout > % grep linsysfs /etc/fstab > # linsysfs      /compat/linux/sys       linsysfs > rw                         0     0 > # linsysfs        /compat/ubuntu/sys      linsysfs > rw,late                    0     0 > % > > > After linux_enable: NO and a reboot, > > % sysrc -f /etc/rc.conf linux_enable > linux_enable: NO > % mount | grep sys > % date ; uname -aKU > Wed 2 Nov 2022 19:06:01 GMT > FreeBSD mowa219-gjp4-8570p-freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT #24 > main-n258900-aba921bd9e18: Sat Oct 29 14:39:59 BST 2022 > grahamperrin@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG > amd64 1400073 1400073 > % sudo service linux onestart > grahamperrin's password: > kldload: an error occurred while loading module linux. Please check > dmesg(8) for more details. > /etc/rc.d/linux: WARNING: Unable to load kernel module linux > kldload: an error occurred while loading module linux64. Please check > dmesg(8) for more details. > /etc/rc.d/linux: WARNING: Unable to load kernel module linux64 > % mount | grep sys > linsysfs on /compat/linux/sys (linsysfs, local) assume linux_common failsed to load, as for now Linuxulator depends on netlink module on -current. > % sudo sysrc linux_enable="YES" > linux_enable: NO -> YES > % > > > With linux_enable: YES (re-enabled) and a reboot, the clobber of > /usr/src/sys recurred. > > ---- > > Resolved through an OS update on 3rd November: > > % uname -aKU > FreeBSD mowa219-gjp4-8570p-freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT #25 > main-n259004-2c10be9e06d4: Thu Nov  3 00:14:52 GMT 2022 > grahamperrin@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG > amd64 1400073 1400073 >