vermaden / automount

Simple devd(8) based automounter for FreeBSD
66 stars 20 forks source link

If Xorg not running, ${FM} is not started (different behaviour than prev. versions) #14

Closed zwieblum closed 4 years ago

zwieblum commented 5 years ago

Affected: Version 1.7.0 on FreeBSD Sympton: On a headless server or woekstation without Xorg running, ${FM} is not executed any more. Versions earlier did execute ${FM} regardless of Xorg running or not. What should work: call ${FM}, even if Xorg is not running. Code causing problem: automount, the if-statement around "continue" in line 606.

zwieblum commented 5 years ago

Addition: The changes also render the ${USER} variable in the configfile useless, as ${FM} will not be run as ${USER}, but iterated over the all users of the specified users group. This can lead to "interesting" problems. Location: aoutomount, line 600 and following

vermaden commented 5 years ago

Thanks for this input. The 1.7 is generally re-thought of the whole idea of mounting. For example USER is not needed anymore and GROUP is used.

You can revert to old version by fetching the 1.6.1 version by hand:

# fetch -o /usr/local/sbin/automount https://raw.githubusercontent.com/vermaden/automount/1.6.1/automount

I did not had time recently to fix automount more, but I will have some free time after two weeks from now.

Regards.

vermaden commented 4 years ago

Version 1.7.1 brings back USER variable.