← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1684731] Re: zfs-share.service: Failed at step EXEC spawning /usr/bin/rm: No such file or directory

 

This bug was fixed in the package zfs-linux - 0.6.5.8-0ubuntu4.3

---------------
zfs-linux (0.6.5.8-0ubuntu4.3) yakkety; urgency=low

  * Fix incorrect path to rm in zfs-share.service.in (LP: #1684731)

 -- Colin Ian King <colin.king@xxxxxxxxxxxxx>  Mon, 22 May 2017 17:13:44
+0100

** Changed in: zfs-linux (Ubuntu Yakkety)
       Status: Fix Committed => Fix Released

** Changed in: zfs-linux (Ubuntu Xenial)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
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 Released
Status in zfs-linux source package in Yakkety:
  Fix Released
Status in zfs-linux source package in Zesty:
  Fix Released
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