<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>34453</bug_id>
          
          <creation_ts>2018-01-13 20:25:26 +0300</creation_ts>
          <short_desc>zfs-utils требует /sbin/systemctl</short_desc>
          <delta_ts>2018-12-05 13:41:13 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>zfs-utils</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>30336</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vitaly Lipatov">lav</reporter>
          <assigned_to name="Anton Farygin">rider</assigned_to>
          <cc>mike</cc>
    
    <cc>rider</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>168470</commentid>
    <comment_count>0</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2018-01-13 20:25:26 +0300</bug_when>
    <thetext>zfs-utils требует частей systemd в системе:
rpm -q --requires zfs-utils
/bin/sh  
/bin/bash  
/usr/bin/python  
/sbin/systemctl

А это вызывает мусор в логах, который отказались лечить:
https://bugzilla.altlinux.org/show_bug.cgi?id=30336

Может быть, можно убрать зависимость на systemd?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>168509</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2018-01-16 14:16:07 +0300</bug_when>
    <thetext>Надо ещё ACL на пакет поправить, сейчас по сути @nobody.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>169254</commentid>
    <comment_count>2</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2018-02-25 17:22:27 +0300</bug_when>
    <thetext>(В ответ на комментарий №1)
&gt; Надо ещё ACL на пакет поправить, сейчас по сути @nobody.

Да, что-то странное, выдаёт пустоту:
$ ssh gear.alt acl sisyphus  zfs-utils show</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>176383</commentid>
    <comment_count>3</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2018-12-05 08:01:58 +0300</bug_when>
    <thetext>у меня нет надежды на работоспособность zfs без systemd.
На системах с systemd есть проблемы ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>176386</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2018-12-05 11:20:27 +0300</bug_when>
    <thetext>&quot;а когда-то ты был фряшником, а-а-а-а-а&quot; :]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>176388</commentid>
    <comment_count>5</comment_count>
    <who name="Valery Inozemtsev">shrek</who>
    <bug_when>2018-12-05 11:35:04 +0300</bug_when>
    <thetext>(В ответ на комментарий №3)
&gt; у меня нет надежды на работоспособность zfs без systemd.
&gt; На системах с systemd есть проблемы ?

# systemctl status zfs-import-cache
● zfs-import-cache.service - Import ZFS pools by cache file
   Loaded: loaded (/lib/systemd/system/zfs-import-cache.service; enabled; vendor preset: enabled)
   Active: inactive (dead)
# systemctl status zfs-mount       
● zfs-mount.service - Mount ZFS filesystems
   Loaded: loaded (/lib/systemd/system/zfs-mount.service; enabled; vendor preset: enabled)
   Active: inactive (dead)
# zfs list
no datasets available
# systemctl restart zfs-mount
# systemctl status zfs-mount
● zfs-mount.service - Mount ZFS filesystems
   Loaded: loaded (/lib/systemd/system/zfs-mount.service; enabled; vendor preset: enabled)
   Active: active (exited) since Wed 2018-12-05 11:31:12 MSK; 6s ago
  Process: 7842 ExecStart=/sbin/zfs mount -a (code=exited, status=0/SUCCESS)
 Main PID: 7842 (code=exited, status=0/SUCCESS)

дек 05 11:31:12 pve.office.basealt.ru systemd[1]: Starting Mount ZFS filesystems...
дек 05 11:31:12 pve.office.basealt.ru systemd[1]: Started Mount ZFS filesystems.
# zfs list
NAME                       USED  AVAIL  REFER  MOUNTPOINT
zfs-01                     490M  45,8G    96K  /zfs-01
zfs-01/subvol-101-disk-0   489M  2,52G   489M  /zfs-01/subvol-101-disk-0
# mount | grep zfs
# systemctl restart zfs-import-cache
# systemctl status zfs-import-cache
● zfs-import-cache.service - Import ZFS pools by cache file
   Loaded: loaded (/lib/systemd/system/zfs-import-cache.service; enabled; vendor preset: enabled)
   Active: active (exited) since Wed 2018-12-05 11:33:33 MSK; 6s ago
  Process: 8796 ExecStart=/sbin/zpool import -c /etc/zfs/zpool.cache -aN (code=exited, status=0/SUCCESS)
  Process: 8795 ExecStartPre=/sbin/modprobe zfs (code=exited, status=0/SUCCESS)
 Main PID: 8796 (code=exited, status=0/SUCCESS)

дек 05 11:33:33 pve.office.basealt.ru systemd[1]: Stopping Import ZFS pools by cache file...
дек 05 11:33:33 pve.office.basealt.ru systemd[1]: Starting Import ZFS pools by cache file...
дек 05 11:33:33 pve.office.basealt.ru systemd[1]: Started Import ZFS pools by cache file.
дек 05 11:33:33 pve.office.basealt.ru zpool[8796]: no pools available to import
# mount | grep zfs
# systemctl restart zfs-mount
# mount | grep zfs           
zfs-01 on /zfs-01 type zfs (rw,xattr,noacl)
zfs-01/subvol-101-disk-0 on /zfs-01/subvol-101-disk-0 type zfs (rw,xattr,posixacl)

такое вот кино</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>176393</commentid>
    <comment_count>6</comment_count>
    <who name="Valery Inozemtsev">shrek</who>
    <bug_when>2018-12-05 13:41:13 +0300</bug_when>
    <thetext>похоже помогает
# systemctl enable zfs.target
хотя он и так включается в postinstall</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>