Commit 5f853a3e authored by Natanael Copa's avatar Natanael Copa
Browse files

main/mkinitfs: add simpledrm to base

needed for console
ref #13165
parent a2fce62f
From c601e12f7fb1947987c6da04f22fb9a87a2c11b1 Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Tue, 9 Nov 2021 11:14:21 +0100
Subject: [PATCH] Load simpledrm kernel module early
This is needed for early console
---
features.d/base.modules | 1 +
initramfs-init.in | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/features.d/base.modules b/features.d/base.modules
index ec440f1..4100645 100644
--- a/features.d/base.modules
+++ b/features.d/base.modules
@@ -1,2 +1,3 @@
kernel/drivers/block/loop.ko*
+kernel/drivers/gpu/drm/tiny/simpledrm.ko*
kernel/fs/overlayfs
diff --git a/initramfs-init.in b/initramfs-init.in
index bbe2f82..c560f37 100755
--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -457,7 +457,7 @@ fi
# load available drivers to get access to modloop media
ebegin "Loading boot drivers"
-modprobe -a $(echo "$KOPT_modules $rootfstype" | tr ',' ' ' ) loop squashfs 2> /dev/null
+modprobe -a $(echo "$KOPT_modules $rootfstype" | tr ',' ' ' ) loop squashfs simpledrm 2> /dev/null
if [ -f /etc/modules ] ; then
sed 's/\#.*//g' < /etc/modules |
while read module args; do
--
2.33.1
......@@ -3,7 +3,7 @@ pkgname=mkinitfs
pkgver=3.5.0
# shellcheck disable=SC2034 # used for git versions, keep around for next time
_ver=${pkgver%_git*}
pkgrel=2
pkgrel=3
pkgdesc="Tool to generate initramfs images for Alpine"
url="https://gitlab.alpinelinux.org/alpine/mkinitfs"
arch="all"
......@@ -18,6 +18,7 @@ install="$pkgname.pre-upgrade $pkgname.post-install $pkgname.post-upgrade"
triggers="$pkgname.trigger=/usr/share/kernel/*"
source="https://gitlab.alpinelinux.org/alpine/mkinitfs/-/archive/$pkgver/mkinitfs-$pkgver.tar.gz
0001-Add-support-for-compressed-kernel-modules.patch
0001-Add-simpledrm-kernel-module-to-base-feature.patch
"
build() {
......@@ -31,4 +32,5 @@ package() {
sha512sums="
27199775b26b9235306c026877c8be97c05ee3f6670fbb49a9da6f5a82a918a523b54b68414f0c5b73b9713ef20495cf5110081151f126817fc3351c34413928 mkinitfs-3.5.0.tar.gz
4478c58678c3ea853ddc8a861bd3c578e1dfaf247eb754eee5f72de67274c503b704b19d5a7b739ce4495084f8bf7ce74505c3994e05caa2d0e41e4c9a79628a 0001-Add-support-for-compressed-kernel-modules.patch
f472a41ad146878d8d9e2b5017b0ecf1412393bc13471362f0bbb6c9461ea796af64d7f2ba17f882352efef1b024f9499e64e5fa85c01f4afeb7fcfcc09b8ff2 0001-Add-simpledrm-kernel-module-to-base-feature.patch
"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment