zfs-share.service: Failed at step EXEC spawning /usr/bin/rm: No such file or directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zfs-linux (Ubuntu) |
Fix Released
|
High
|
Colin Ian King | ||
Xenial |
Fix Released
|
High
|
Colin Ian King | ||
Yakkety |
Fix Released
|
High
|
Colin Ian King | ||
Zesty |
Fix Released
|
High
|
Colin Ian King | ||
Artful |
Fix Released
|
High
|
Colin Ian King |
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/
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=
Main PID: 2483 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 4915)
Memory: 0B
CPU: 0
CGroup: /system.
[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/
ExecStartPr
there is no file such /usr/bin/rm
Changed in zfs-linux (Ubuntu): | |
status: | Incomplete → In Progress |
Changed in zfs-linux (Ubuntu Zesty): | |
importance: | Undecided → High |
Changed in zfs-linux (Ubuntu Xenial): | |
importance: | Undecided → High |
Changed in zfs-linux (Ubuntu Yakkety): | |
importance: | Undecided → High |
Changed in zfs-linux (Ubuntu Xenial): | |
assignee: | nobody → Colin Ian King (colin-king) |
Changed in zfs-linux (Ubuntu Yakkety): | |
assignee: | nobody → Colin Ian King (colin-king) |
Changed in zfs-linux (Ubuntu Zesty): | |
assignee: | nobody → Colin Ian King (colin-king) |
description: | updated |
Which release of Ubuntu and version of zfs are you using?