[GH-ISSUE #80] OpenSUSE support? #44

Open
opened 2026-10-13 21:05:43 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @User-green on GitHub (Jun 27, 2025).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/80

It seems that Amnezia isnt that far from OpenSUSE support, but some work is required.

There is a problem with building:

Deprecated feature: REMAKE_INITRD (/var/lib/dkms/amneziawg/1.0.0/source/dkms.conf)
Sign command: /lib/modules/6.15.3-1-default/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Running the pre_build script...(bad exit status: 255)
Failed command:
cd /var/lib/dkms/amneziawg/1.0.0/build/ && /var/lib/dkms/amneziawg/1.0.0/build/prepare-sources.sh 6.15.3-1-default
Consult /var/lib/dkms/amneziawg/1.0.0/build/make.log for more information.
noroot@tslp:~/amneziawg-linux-kernel-module/src> cat /var/lib/dkms/amneziawg/1.0.0/build/make.log
DKMS (dkms-3.1.7) make.log for amneziawg/1.0.0 for kernel 6.15.3-1-default (x86_64)
Пт 27 июн 2025 20:51:33 CEST

Running the pre_build script
# command: cd /var/lib/dkms/amneziawg/1.0.0/build/ && /var/lib/dkms/amneziawg/1.0.0/build/prepare-sources.sh 6.15.3-1-default
Downloading source for Linux kernel version 6.15.3-1-default
allow_vendor_change is disabled. This option is currently not supported for downgrade and distro-sync commands
No package kernel available.
Exiting due to strict setting.
Error: No package kernel available.
ls: невозможно получить доступ к '*.rpm': Нет такого файла или каталога
ошибка: невозможно открыть : Нет такого файла или каталога
/var/lib/dkms/amneziawg/1.0.0/build/prepare-sources.sh: строка 87: cd: SPECS: Нет такого файла или каталога

# exit code: 255
# elapsed time: 00:00:00
----------------------------------------------------------------

And, obviously, part of the code that is problematic is problematic due to yumdownloader.

else
  yumdownloader --source kernel
  [ -f "${HOME}/.rpmmacros" ] && mv "${HOME}/.rpmmacros" "${HOME}/.rpmmacros.orig"
  echo "%_topdir $(pwd)" > "${HOME}/.rpmmacros"
  rpm -ivh "$(ls *.rpm)"
  cd SPECS || exit 255
  rpmbuild -bp --target="$(uname -m)" --nodeps kernel.spec
  rm -rf "${HOME}/.rpmmacros"
  [ -f "${HOME}/.rpmmacros.orig" ] && mv "${HOME}/.rpmmacros.orig" "${HOME}/.rpmmacros"
  cd ../BUILD || exit 255
  cd_first
  cd_first linux
fi

Is it an easy fix?

P.S. May linux distri store current kernel sources under /usr/src/linux/, so no need to search in the Net. May be it worth to point it out in the README?

Originally created by @User-green on GitHub (Jun 27, 2025). Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/80 It seems that Amnezia isnt that far from OpenSUSE support, but some work is required. There is a problem with building: ``` Deprecated feature: REMAKE_INITRD (/var/lib/dkms/amneziawg/1.0.0/source/dkms.conf) Sign command: /lib/modules/6.15.3-1-default/build/scripts/sign-file Signing key: /var/lib/dkms/mok.key Public certificate (MOK): /var/lib/dkms/mok.pub Running the pre_build script...(bad exit status: 255) Failed command: cd /var/lib/dkms/amneziawg/1.0.0/build/ && /var/lib/dkms/amneziawg/1.0.0/build/prepare-sources.sh 6.15.3-1-default Consult /var/lib/dkms/amneziawg/1.0.0/build/make.log for more information. noroot@tslp:~/amneziawg-linux-kernel-module/src> cat /var/lib/dkms/amneziawg/1.0.0/build/make.log DKMS (dkms-3.1.7) make.log for amneziawg/1.0.0 for kernel 6.15.3-1-default (x86_64) Пт 27 июн 2025 20:51:33 CEST Running the pre_build script # command: cd /var/lib/dkms/amneziawg/1.0.0/build/ && /var/lib/dkms/amneziawg/1.0.0/build/prepare-sources.sh 6.15.3-1-default Downloading source for Linux kernel version 6.15.3-1-default allow_vendor_change is disabled. This option is currently not supported for downgrade and distro-sync commands No package kernel available. Exiting due to strict setting. Error: No package kernel available. ls: невозможно получить доступ к '*.rpm': Нет такого файла или каталога ошибка: невозможно открыть : Нет такого файла или каталога /var/lib/dkms/amneziawg/1.0.0/build/prepare-sources.sh: строка 87: cd: SPECS: Нет такого файла или каталога # exit code: 255 # elapsed time: 00:00:00 ---------------------------------------------------------------- ``` And, obviously, part of the code that is problematic is problematic due to yumdownloader. ``` else yumdownloader --source kernel [ -f "${HOME}/.rpmmacros" ] && mv "${HOME}/.rpmmacros" "${HOME}/.rpmmacros.orig" echo "%_topdir $(pwd)" > "${HOME}/.rpmmacros" rpm -ivh "$(ls *.rpm)" cd SPECS || exit 255 rpmbuild -bp --target="$(uname -m)" --nodeps kernel.spec rm -rf "${HOME}/.rpmmacros" [ -f "${HOME}/.rpmmacros.orig" ] && mv "${HOME}/.rpmmacros.orig" "${HOME}/.rpmmacros" cd ../BUILD || exit 255 cd_first cd_first linux fi ``` Is it an easy fix? P.S. May linux distri store current kernel sources under `/usr/src/linux/`, so no need to search in the Net. May be it worth to point it out in the README?
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amneziawg-linux-kernel-module#44
No description provided.