Re: linsysfs on /usr/src/sys (linsysfs, local)

2022-11-07 Thread Dmitry Chagin
On Mon, Nov 07, 2022 at 03:03:25AM +, 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
> 






Re: linsysfs on /usr/src/sys (linsysfs, local)

2022-11-07 Thread Tomoaki AOKI
On Mon, 7 Nov 2022 03:03:25 +
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)
> % 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.

Possibly because there is a symlink /sys pointing to /usr/sys?
The symlink is there historically, but already doesn't appear on
`man hier` or /etc/mtree/.

I finally found the revision 2878 at Mon Sep 19 01:40:40 1994 UTC [1]
stopped creating the symlink automatically using /etc/mtree/.

If the installation is old, kept-on-updating one, it would be time to
delete the symlink.


[1]
https://cgit.freebsd.org/src/commit/etc/mtree/BSD.root.dist?id=c27b58e1b62e792e35a27bc5fd261e04293b076e

> 
> 
> 
> 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
> 


-- 
Tomoaki AOKI



linsysfs on /usr/src/sys (linsysfs, local)

2022-11-06 Thread Graham Perrin

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)
% 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




OpenPGP_signature
Description: OpenPGP digital signature