main/devicepkg-dev: use modules-initfs to install modules into initramfs (MR 4169)

Since the modules are going to be installed into the initfs, it makes
sense to use a more verbose naming for the file. Otherwise there's the
risk of getting confused with other type of module files that exist in
device packages.

Fixes 65be0d7e81
This commit is contained in:
Pablo Correa Gómez 2023-07-28 13:11:54 +02:00 committed by Oliver Smith
parent 968d1cb57f
commit 7213fd54ca
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
3 changed files with 7 additions and 7 deletions

View file

@ -28,8 +28,8 @@ kernel=$(echo "$subpkgname" | sed -n "s/.*-kernel-\(.*\)/\1/p" | tr - _)
# a modules.$kernel file, it should instead be more than one modules.$kernel
# files, with different $kernel values. The conflict between the package and
# the subpackage aims to prevent the unsupported situation to slip through.
if [ -f "$srcdir/modules.$kernel" ]; then
install -Dm644 "$srcdir/modules.$kernel" \
if [ -f "$srcdir/modules-initfs.$kernel" ]; then
install -Dm644 "$srcdir/modules-initfs.$kernel" \
"$subpkgdir/usr/share/mkinitfs/modules/00-$pkgname.modules"
mkdir -p "$subpkgdir/usr/share/mkinitfs/files"
echo "/usr/share/mkinitfs/modules/00-$pkgname.modules:/lib/modules/initramfs.load" \