main/devicepkg-dev: install modules file into initramfs (MR 4193)

So that the initramfs can get the list of modules that need to be loaded
once the deviceinfo_modules_initfs variable is gone
This commit is contained in:
Pablo Correa Gómez 2023-06-27 18:55:53 +02:00 committed by Clayton Craft
parent 65be0d7e81
commit f3c7308f6f
No known key found for this signature in database
GPG key ID: 4A4CED6D7EDF950A
3 changed files with 16 additions and 3 deletions

View file

@ -33,9 +33,14 @@ if [ -f "$srcdir/initfs-hook.sh" ]; then
"$pkgdir/usr/share/mkinitfs/hooks/00-$pkgname.sh"
fi
# All the installation paths for the modules conflict with those from
# devicepkg_subpackage_kernel. See comment there for details
if [ -f "$srcdir/modules" ]; then
install -Dm644 "$srcdir/modules" \
"$pkgdir/usr/share/mkinitfs/modules/00-$pkgname.modules"
mkdir -p "$pkgdir/usr/share/mkinitfs/files"
echo "/usr/share/mkinitfs/modules/00-$pkgname.modules:/lib/modules/initramfs.load" \
> "$pkgdir/usr/share/mkinitfs/files/00-$pkgname-modules.files"
fi
if [ -f "$srcdir/modules-load.conf" ]; then