grub-mkconfig fails with ZFS when /etc/fstab was touched: find: ‘mount: (hint) your fstab has been modified, but systemd still uses[…]/tmp/zfsmnt.2a85H0/boot’: No such file or directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hello,
If /etc/fstab is newer than /run/systemd/
This causes the following mount call to return a message which is later interpreted as a path:
https:/
https:/
To reproduce:
* Install Ubuntu 25.04 with a /boot and a / dataset:
root@test:~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
zp0 2.73G 212G 24K none
zp0/zd0 118M 906M 118M /boot
zp0/zd1 2.61G 212G 2.61G /
* Run "touch /etc/fstab"
root@test:~# grub-mkconfig
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
[…]
### BEGIN /etc/grub.
find: ‘mount: (hint) your fstab has been modified, but systemd still uses\n the old version; use 'systemctl daemon-reload' to reload.
### END /etc/grub.
[…]
util-linux's upstream might change mount's behavior to skip the hint when STDOUT is not a TTY, see https:/
In the meantime, I think it might be prudent to discard output from all mount calls from /etc/grub.
Could you please backport this util-linux patch to fix the bug? https:/ /github. com/util- linux/util- linux/commit/ cdc8b265bff5ee1 ebd496aa1d6211e 4ba120f766