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:
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user