FS#64296 - [autofs] 5.1.6-1 package does not contain /usr/lib/systemd/system/autofs.service

Attached to Project: Community Packages
Opened by SATO Tatsuya (tattsan) - Monday, 28 October 2019, 16:17 GMT
Last edited by freswa (frederik) - Sunday, 27 September 2020, 11:56 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Lukas Fleischer (lfleischer)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 18
Private No

Details

Description:
autofs-5.1.6-1 does not contain /usr/lib/systemd/system/autofs.service

Should we create /etc/systemd/system/autofs.service manually?
This task depends upon

Closed by  freswa (frederik)
Sunday, 27 September 2020, 11:56 GMT
Reason for closing:  Fixed
Additional comments about closing:  autofs 5.1.6-2
Comment by loqs (loqs) - Monday, 28 October 2019, 17:44 GMT
See https://git.kernel.org/pub/scm/linux/storage/autofs/autofs.git/commit/?id=0da3f5695dc21d44623f87a95295a6aa7c729b6f

replacing
make INSTALLROOT="${pkgdir}" install
with
make INSTALLROOT="${pkgdir}" install install_samples

produces a package with the service and config files included.
Comment by Gustav Almström (Scuttle) - Tuesday, 29 October 2019, 05:58 GMT
Yep, upgrading from the previous version breaks AutoFS. It overwrites files in /etc/autofs and deletes /usr/lib/systemd/system/autofs.service
Comment by Husi Susi (HusiSusi) - Tuesday, 29 October 2019, 10:16 GMT
Yes, for /usr/lib/systemd/system/autofs.service you have to downgrade and save a copy of /usr/lib/systemd/system/autofs.service and upgrade it again, copy back the /usr/lib/systemd/system/autofs.service and run "systemctl enable autofs.service" and "systemctl start autofs.service".
It will overwrite the files in /etc/autofs but you can find your old config file as auto.master.pacsave.
Comment by Paul Kerry (paulkerry) - Tuesday, 29 October 2019, 14:27 GMT
Or of course you can use a local copy of the file (if you have it) from autofs-5.1.4-3-x86_64.pkg.tar.xz or download and extract it from https://archive.archlinux.org/packages/a/autofs/
Comment by Javier (je-vv) - Tuesday, 29 October 2019, 21:45 GMT
Simplest way for me to work around was to rebuild the autofs package as indicated by @loqs (just adding "install_samples" to the make ... instal command), through makepkg, and install that newly generated package. This implies no need to re-enable the service, and just merge my auto.master.pacsave with the newly generated auto.master (I could have just overwritten it as well).
Comment by K. Hampf (khampf) - Wednesday, 30 October 2019, 18:37 GMT
I would say the severity is High when the upgrade cleary makes autofs loose all functionality
Comment by DocMAX (DocMAX) - Wednesday, 30 October 2019, 19:31 GMT
How can such stupid things happen?
Comment by Lukas Fleischer (lfleischer) - Thursday, 31 October 2019, 18:07 GMT
Should be fixed in 5.1.6-2.
Comment by SATO Tatsuya (tattsan) - Saturday, 02 November 2019, 20:39 GMT
Seems to be solved. Thank you so much.

Loading...