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:
parent
968d1cb57f
commit
7213fd54ca
3 changed files with 7 additions and 7 deletions
|
|
@ -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" \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue