Page MenuHomeFreeBSD

rc.d/linux: Attempt to mount only if necessary
Needs ReviewPublic

Authored by 0mp on Tue, Oct 12, 8:49 AM.



Currently, if the linux service is run twice, mount fails with:

mount: linprocfs: Device busy
mount: linsysfs: Device busy
mount: devfs: Device busy
mount: fdescfs: Device busy
mount: tmpfs: Device busy

Additionally, the exit code of service linux start is 1 in such a case.

It is a bit more user-friendly if before running mount(8) the service
checks if there are any file systems let to be mounted.

Test Plan

The service still mounts file systems as before. Invoking service linux start for the second time no longer prints out error messages.

Diff Detail

rS FreeBSD src repository - subversion
Lint OK
No Unit Test Coverage
Build Status
Buildable 42084
Build 38972: arc lint + arc unit