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:
parent
65be0d7e81
commit
f3c7308f6f
3 changed files with 16 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue