[linux-uc20-efi][PATCH 1/1] UBUNTU: [Debian] Add megaraid_sas into initrd
Seth Forshee
seth.forshee at canonical.com
Tue Jan 26 17:37:54 UTC 2021
On Fri, Jan 22, 2021 at 06:56:00PM +0800, Wen-chien Jesse Sung wrote:
> BugLink: https://launchpad.net/bugs/1912752
>
> Module megaraid_sas is required in order to some systems to boot with
> the pc-kernel snap. Append megaraid_sas to ubuntu-core-initramfs.conf
> before using ubuntu-core-initramfs to generate the initrd in order to
> include the particular module.
>
> Signed-off-by: Wen-chien Jesse Sung <jesse.sung at canonical.com>
Why not change this in ubuntu-core-initramfs instead? This is a kludgy
way to add the module to the conf file, so we'd only want to do this if
there's some reason it's unacceptable to add it to ubuntu-core-initramfs
directly.
Seth
> ---
> debian/rules | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/debian/rules b/debian/rules
> index 1d85292..fc46042 100755
> --- a/debian/rules
> +++ b/debian/rules
> @@ -50,6 +50,7 @@ override_dh_auto_build:
> apt-get download $$pkg; \
> dpkg-deb -x $${pkg}_*.deb $$flavour; \
> ); \
> + echo megaraid_sas >> /usr/lib/ubuntu-core-initramfs/main/usr/lib/modules-load.d/ubuntu-core-initramfs.conf \
> ubuntu-core-initramfs create-initrd --output $(initrd) \
> --kernelver $(KERNEL_ABI_VERSION)-$$flavour; \
> ubuntu-core-initramfs create-efi --unsigned --output $(efi) \
> --
> 2.27.0
>
>
> --
> kernel-team mailing list
> kernel-team at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
More information about the kernel-team
mailing list