Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#76867 - [grub-btrfs] Add missing dependency (inotify-tools)

Attached to Project: Community Packages
Opened by Klaus Tachtler (tachtler) - Sunday, 18 December 2022, 06:02 GMT
Last edited by Maxim Baz (maximbaz) - Monday, 19 December 2022, 10:07 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Maxim Baz (maximbaz)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

While installing the grub-btrfs package, there was a missing dependency, which causes a problem while starting the grub-btrfsd.service.
--> Missing dependency is community/inotify-tools

Additional info:
* package version(s) --> grub-btrfs 4.12
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
1. Install community/grub-btrfs package
2. Start the service grub-btrfsd.service
3. Start failed with missing dependecy message:

× grub-btrfsd.service - Regenerate grub-btrfs.cfg
Loaded: loaded (/usr/lib/systemd/system/grub-btrfsd.service; enabled; preset: disabled)
Active: failed (Result: exit-code) since Sun 2022-12-18 06:55:27 CET; 1min 11s ago
Duration: 31ms
Process: 446 ExecStart=/usr/bin/grub-btrfsd --syslog /.snapshots (code=exited, status=1/FAILURE)
Main PID: 446 (code=exited, status=1/FAILURE)
CPU: 6ms

Dec 18 06:55:27 vml040 grub-btrfsd[449]: [!] inotifywait was not found, exiting. Is inotify-tools installed?
Dec 18 06:55:27 vml040 systemd[1]: grub-btrfsd.service: Main process exited, code=exited, status=1/FAILURE

After installation of community/inotify-tools, the service could be started:

● grub-btrfsd.service - Regenerate grub-btrfs.cfg
Loaded: loaded (/usr/lib/systemd/system/grub-btrfsd.service; enabled; preset: disabled)
Active: active (running) since Sun 2022-12-18 06:56:43 CET; 1s ago
Main PID: 681 (grub-btrfsd)
Tasks: 2 (limit: 2316)
Memory: 856.0K
CPU: 10ms
CGroup: /system.slice/grub-btrfsd.service
├─681 /bin/sh /usr/bin/grub-btrfsd --syslog /.snapshots
└─689 inotifywait -q -q -e create -e delete -e unmount -t 0 /.snapshots

Dec 18 06:56:43 vml040 grub-btrfsd[685]: grub-btrfsd starting up...
Dec 18 06:56:43 vml040 grub-btrfsd[687]: Watching /.snapshots for new snapshots...
This task depends upon

Closed by  Maxim Baz (maximbaz)
Monday, 19 December 2022, 10:07 GMT
Reason for closing:  Fixed
Comment by Toolybird (Toolybird) - Sunday, 18 December 2022, 06:46 GMT
Appears to be an optdep (only needed when running the daemon).
Comment by Klaus Tachtler (tachtler) - Sunday, 18 December 2022, 06:50 GMT
Hi Toolybird,

maybe your're right, BUT in my opinion, if you offer to use to run a daemon, all dependencies should be fulfilled?

What do you think?


Thank you.
Klaus.
Comment by Maxim Baz (maximbaz) - Monday, 19 December 2022, 10:07 GMT
Thanks for letting me know! Fixed in 4.12-2. I also tend to think that it's an optional dependency, as the primary functionality is to allow updating GRUB entries, and it's up to the users to decide when and how they want to do it, as well as when and how to create the snapshots in the first place. Just to give you one alternative example, if all you care about is making snapshots before and after updating packages with pacman, instead of using the grub-btrfsd daemon to listen to file system events, snap-pac [1] and snap-pac-grub [2] can integrate directly into pacman via the hooks.

1: https://github.com/wesbarnett/snap-pac
2: https://github.com/maximbaz/snap-pac-grub

Loading...