Verified with ubuntu Zesty 17.04 with zfsutils-linux 0.6.5.9-5ubuntu4.1
with ZFS shared over NFS, rm now works:
systemctl status zfs-share.service
● zfs-share.service - ZFS file system shares
Loaded: loaded (/lib/systemd/system/zfs-share.service; enabled; vendor preset
Active: active (exited) since Wed 2017-05-31 14:22:31 BST; 6min ago
Process: 2483 ExecStart=/sbin/zfs share -a (code=exited, status=0/SUCCESS)
Process: 2476 ExecStartPre=/bin/rm -f /etc/dfs/sharetab (code=exited, status=0
Main PID: 2483 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 4915)
Memory: 0B
CPU: 0
CGroup: /system.slice/zfs-share.service
** Description changed:
== SRU Xenial, Yakkety, Zesty ==
[Justification]
The path to rm is incorrect and hence it won't remove the /etc/dfs/sharetab
[Fix]
Set correct path, use /bin/rm and not /usr/bin/rm
[Test Case]
Without the fix, /etc/dfs/sharetab is not removed. With the fix, it is
removed. To test, touch /etc/dfs/sharetab and it should be removed on startup
of the zfs share service.
+ With the fix:
+ $ systemctl status zfs-share.service
+
+ ● zfs-share.service - ZFS file system shares
+ Loaded: loaded (/lib/systemd/system/zfs-share.service; enabled; vendor
preset
+ Active: active (exited) since Wed 2017-05-31 14:22:31 BST; 11s ago
+ Process: 2483 ExecStart=/sbin/zfs share -a (code=exited, status=0/SUCCESS)
+ Process: 2476 ExecStartPre=/bin/rm -f /etc/dfs/sharetab (code=exited,
status=0
+ Main PID: 2483 (code=exited, status=0/SUCCESS)
+ Tasks: 0 (limit: 4915)
+ Memory: 0B
+ CPU: 0
+ CGroup: /system.slice/zfs-share.service
+
[Regression Potenial]
Minimal, this affects the removal of a file that should be fixed. The only
regression risk is if somebody is depending on this file, which they should not
be doing so.
wrong `rm` path on /lib/systemd/system/zfs-share.service
ExecStartPre=-/usr/bin/rm -f /etc/dfs/sharetab
there is no file such /usr/bin/rm
** Tags added: verification-done-zesty
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to zfs-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1684731
Title:
zfs-share.service: Failed at step EXEC spawning /usr/bin/rm: No such
file or directory
Status in zfs-linux package in Ubuntu:
Fix Released
Status in zfs-linux source package in Xenial:
Fix Committed
Status in zfs-linux source package in Yakkety:
Fix Committed
Status in zfs-linux source package in Zesty:
Fix Committed
Status in zfs-linux source package in Artful:
Fix Released
Bug description:
== SRU Xenial, Yakkety, Zesty ==
[Justification]
The path to rm is incorrect and hence it won't remove the /etc/dfs/sharetab
[Fix]
Set correct path, use /bin/rm and not /usr/bin/rm
[Test Case]
Without the fix, /etc/dfs/sharetab is not removed. With the fix, it is
removed. To test, touch /etc/dfs/sharetab and it should be removed on startup
of the zfs share service.
With the fix:
$ systemctl status zfs-share.service
● zfs-share.service - ZFS file system shares
Loaded: loaded (/lib/systemd/system/zfs-share.service; enabled; vendor
preset
Active: active (exited) since Wed 2017-05-31 14:22:31 BST; 11s ago
Process: 2483 ExecStart=/sbin/zfs share -a (code=exited, status=0/SUCCESS)
Process: 2476 ExecStartPre=/bin/rm -f /etc/dfs/sharetab (code=exited,
status=0
Main PID: 2483 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 4915)
Memory: 0B
CPU: 0
CGroup: /system.slice/zfs-share.service
[Regression Potenial]
Minimal, this affects the removal of a file that should be fixed. The only
regression risk is if somebody is depending on this file, which they should not
be doing so.
wrong `rm` path on /lib/systemd/system/zfs-share.service
ExecStartPre=-/usr/bin/rm -f /etc/dfs/sharetab
there is no file such /usr/bin/rm
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1684731/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp