main/postmarketos-base-downstream: add disable-udev-v4l subpackage (MR 4768)
Which replaces /lib/udev/rules.d/60-persistent-v4l.rules (from the eudev package) with a symlink to /dev/null. Around 20 devices need this to fix a kernel panic with downstream kernel when starting udev. Issue happens due to that camera firmware is missing and/or not loaded properly.
This commit is contained in:
parent
e08332313d
commit
43f788fa2f
1 changed files with 14 additions and 2 deletions
|
@ -1,18 +1,30 @@
|
||||||
# Maintainer: Henrik Grimler <henrik@grimler.se>
|
# Maintainer: Henrik Grimler <henrik@grimler.se>
|
||||||
pkgname=postmarketos-base-downstream
|
pkgname=postmarketos-base-downstream
|
||||||
pkgver=1
|
pkgver=2
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
pkgdesc="Base package for devices with downstream (vendor) kernels"
|
pkgdesc="Base package for devices with downstream (vendor) kernels"
|
||||||
url="https://postmarketos.org"
|
url="https://postmarketos.org"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="GPL-3.0-or-later"
|
license="GPL-3.0-or-later"
|
||||||
subpackages="$pkgname-lightdm"
|
subpackages="
|
||||||
|
$pkgname-disable-udev-v4l:disable_udev_v4l
|
||||||
|
$pkgname-lightdm
|
||||||
|
"
|
||||||
source="10-logind-check-graphical.conf"
|
source="10-logind-check-graphical.conf"
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
mkdir -p "$pkgdir"
|
mkdir -p "$pkgdir"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
disable_udev_v4l() {
|
||||||
|
# On some devices the kernel panics or hangs when starting
|
||||||
|
# udev if camera firmware is missing and/or fails to load
|
||||||
|
pkgdesc="Package to disable udev video4linux rules"
|
||||||
|
replaces="eudev"
|
||||||
|
mkdir -p "$subpkgdir"/lib/udev/rules.d
|
||||||
|
ln -s /dev/null "$subpkgdir"/lib/udev/rules.d/60-persistent-v4l.rules
|
||||||
|
}
|
||||||
|
|
||||||
lightdm() {
|
lightdm() {
|
||||||
install_if="$pkgname=$pkgver-r$pkgrel lightdm"
|
install_if="$pkgname=$pkgver-r$pkgrel lightdm"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue