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

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

    <bug>
          <bug_id>58334</bug_id>
          
          <creation_ts>2026-03-23 16:55:01 +0300</creation_ts>
          <short_desc>Не хватает автоматизации</short_desc>
          <delta_ts>2026-03-23 16:55:01 +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>dkms</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Boris Yumankulov">boriabloger</reporter>
          <assigned_to name="Andrey Cherepanov">cas</assigned_to>
          <cc>cas</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>284376</commentid>
    <comment_count>0</comment_count>
    <who name="Boris Yumankulov">boriabloger</who>
    <bug_when>2026-03-23 16:55:01 +0300</bug_when>
    <thetext>Сейчас задача собрать или удалить dkms модуль ложится на пользователя, в части dkms пакетов имеется подобная конструкция


%post -n %name-kernel-modules-dkms
#!/bin/sh
set -e
dkms install %dkms_name/%dkms_version || {
echo &quot;Failed to install openrazer-driver! Update your kernel and install&quot;
echo &quot;kernel-headers-modules matching your kernel flavour.&quot;
}

%preun -n %name-kernel-modules-dkms
#!/bin/sh
if [ &quot;$(dkms status -m %dkms_name -v %dkms_version)&quot; ]; then
  dkms remove -m %dkms_name -v %dkms_version --all
fi


Но, не во всех, поэтому думаю логично было бы добавить файловый триггер и скрипт для автоматической сборки и удаления модулей например как подобное в arch https://gitlab.archlinux.org/archlinux/packaging/packages/dkms

В самом пакете есть dkms.service, но собирать dkms перед запуском системы как-то не очень</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>