From a3375bb0babaa6c89b9f0e13a99aeea1d5cdb40a Mon Sep 17 00:00:00 2001 From: Martijn Braam Date: Wed, 4 Oct 2017 20:16:31 +0200 Subject: [PATCH] Removed a lot of hardcoded modules in mkinitramfs (#691) This removes a few globs from the mkinitramfs module copy part. This is an issue in linux-postmarketos since it will copy gpu drivers for all possible hardware to the initramfs. This should be done in the deviceinfo variables for the modules instead and is already done for the current devices that use module loading. This changes the initramfs (uncompressed) from 16 MB to 11 MB just because the qemu graphics drivers aren't included. --- main/postmarketos-mkinitfs/APKBUILD | 4 ++-- main/postmarketos-mkinitfs/mkinitfs.sh | 10 ---------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/main/postmarketos-mkinitfs/APKBUILD b/main/postmarketos-mkinitfs/APKBUILD index f05f6e77c..a636d4936 100644 --- a/main/postmarketos-mkinitfs/APKBUILD +++ b/main/postmarketos-mkinitfs/APKBUILD @@ -1,5 +1,5 @@ pkgname=postmarketos-mkinitfs -pkgver=0.3.10 +pkgver=0.4.0 pkgrel=0 pkgdesc="Tool to generate initramfs images for postmarketOS" url="https://github.com/postmarketOS" @@ -23,4 +23,4 @@ package() { } sha512sums="e1849a13ee696e76dc6c734eda984bcc6a6e2e3d8a62a4df0778a8e338dc0bf9d967fa263ae6e57c14a0cb516c6004c6e251262a1711ad47f1ce4c622727a1d7 init.sh.in a107e9b49859aa99852a42dc7cbd9815de11c6983c00a2ebd6b9ff53ab6db82aff974d6e715da6aacee3796ae6865a599db5b56a618d90a44c3c4a01fd7bcb01 init_functions.sh -4253ae9e3cafa04499a22dd8e94cf255208a697f9bcc43b0c10c72c6280b795a6b061e5a273ae37836698a2f0c92e033574c26afe60429145a75407c67b6ad74 mkinitfs.sh" +9461cd531489c8254a47a17f80e5cc10d52b2a5c854aa9b9faab8ca647e78c945933eb5d8257368ed2e53ac0438b7a1f396f53e7ed11a367b3f81e6881e5fa5e mkinitfs.sh" diff --git a/main/postmarketos-mkinitfs/mkinitfs.sh b/main/postmarketos-mkinitfs/mkinitfs.sh index 9dfc19e58..2c9921c02 100644 --- a/main/postmarketos-mkinitfs/mkinitfs.sh +++ b/main/postmarketos-mkinitfs/mkinitfs.sh @@ -46,16 +46,6 @@ get_modules_by_globs() kernel/arch/*/crypto/* kernel/drivers/md/dm-crypt.ko - # kms.modules - kernel/drivers/char/agp - kernel/drivers/gpu - kernel/drivers/i2c - kernel/drivers/video - kernel/arch/x86/video/fbdev.ko - - # mmc.modules - kernel/drivers/mmc - # required for modprobe modules.* "