main/postmarketos-mkinitfs-hook-ci: mark /etc/udev/rules.d as optional

As a consequence of the hermetic-usr work, /etc/udev/rules.d is slowly
disappearing. This can results in errors like:

18:05:30.180191 hookfiles: unable to process hook file "/usr/share/mkinitfs/files/05-ci.files": unable to add "/etc/udev/rules.d": getFile: failed to stat file "/etc/udev/rules.d": stat /etc/udev/rules.d: no such file or directory (also tried "/etc/udev/rules.d.zst": stat /etc/udev/rules.d.zst: no such file or directory)

from
https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8863#note_563184
due to the directory not being present.

Signed-off-by: Pablo Correa Gómez <pabloyoyoista@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8866>
This commit is contained in:
Pablo Correa Gómez 2026-06-20 12:01:24 +02:00 committed by The Friendly Meow (merge) Bot
parent 695eb25dd3
commit 732c3ed83f
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -4,5 +4,5 @@
/lib/modules
/sbin/udevd
/bin/udevadm
/etc/udev/rules.d
/etc/udev/rules.d!optional
/usr/lib/udev/rules.d

View file

@ -1,7 +1,7 @@
# Co-Maintainer: Pablo Correa Gomez <pabloyoyoista@postmarketos.org>
maintainer="Casey Connolly <kcxt@postmarketos.org>"
pkgname=postmarketos-mkinitfs-hook-ci
pkgver=4
pkgver=5
pkgrel=0
pkgdesc="Hook for doing automated CI tests in the initramfs"
url="https://postmarketos.org"
@ -22,5 +22,5 @@ package() {
sha512sums="
1fed0452581f0384c5fa1178e800f8d8aa1a3af8ecb2626006a3b284d7983d772c6abf3cf23c5cbca105344915224377059dcf6784e9cf70ca54720e6d5fa896 05-ci.sh
26d665b817a4978dca44e0c697d98e12c58fa7941da86b9e3bfef6ecb0791d55859c0b671c00d7f88cfca688acf0dcc3e593ca5d8dd3cc094f582b49dabea645 05-ci.files
b73c5422014890b23a1ef9f5b8b4451c1bbb73fe48e6be427955048399a15ab7818f949141096ab7eb4e158111bfaaee1d29a1796c42873e66bb15708e31fa2d 05-ci.files
"