Page MenuHomeFreeBSD

Use compat.linux.emul_path instead of hardcoded path in /etc/rc.d/linux
ClosedPublic

Authored by freebsdnewbie_freenet.de on Dec 29 2020, 11:54 AM.
Referenced Files
Unknown Object (File)
Fri, Mar 29, 12:37 PM
Unknown Object (File)
Thu, Mar 28, 9:06 PM
Unknown Object (File)
Wed, Mar 20, 12:39 PM
Unknown Object (File)
Feb 19 2024, 9:29 AM
Unknown Object (File)
Jan 14 2024, 10:22 AM
Unknown Object (File)
Dec 23 2023, 3:26 AM
Unknown Object (File)
Dec 10 2023, 7:19 PM
Unknown Object (File)
Oct 10 2023, 5:30 PM
Subscribers

Details

Summary

In /etc/rc.d/linux the mounting paths of procfs, sysfs and devfs is hardcoded to "/compat/linux". Switching to the content of compat.linux.emul_path would allow to switch linuxulator to different place.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

trasz added a subscriber: trasz.

Looks good, thank you!

Do you have the commit bit, or should I go and commit it?

This revision is now accepted and ready to land.Jan 4 2021, 4:33 PM

I do not have a commit bit, so please go ahead and commit it :)

Make changes on source file instead of file in destination location (/etc/rc.d/linux). Use sysctl-variable for all occurences of hardcoded path of /compat/linux.

This revision now requires review to proceed.Jan 19 2021, 1:40 PM
This revision was not accepted when it landed; it landed in state Needs Review.Feb 2 2021, 2:46 PM
This revision was automatically updated to reflect the committed changes.
jkim added inline comments.
libexec/rc/rc.d/linux
21

This must be done after load_kld -e 'linux(aout|elf)' linux below. Otherwise, it may not be defined.