[Cosmic][deb-to-snap master][PATCH] deb to snap: add nvme and hid modules to initrd for amd64
Wen-chien Jesse Sung
jesse.sung at canonical.com
Fri Nov 23 09:57:07 UTC 2018
BugLink: https://launchpad.net/bugs/1802260
Signed-off-by: Wen-chien Jesse Sung <jesse.sung at canonical.com>
---
Makefile | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Makefile b/Makefile
index 7e3ee09..5ef8473 100644
--- a/Makefile
+++ b/Makefile
@@ -78,6 +78,11 @@ all:
fi
mkdir -p chroot/etc/initramfs-tools/conf.d
echo "COMPRESS=lzma" >chroot/etc/initramfs-tools/conf.d/ubuntu-core.conf
+ if [ "$(DPKG_ARCH)" = "amd64" ]; then \
+ echo "nvme" >> chroot/etc/initramfs-tools/modules; \
+ echo "usbhid" >> chroot/etc/initramfs-tools/modules; \
+ echo "hid-generic" >> chroot/etc/initramfs-tools/modules; \
+ fi
$(ENV) chroot chroot apt-get -y update
$(ENV) chroot chroot apt-get -y --allow-unauthenticated install initramfs-tools-ubuntu-core linux-firmware xz-utils
mount --bind /proc chroot/proc
--
2.19.1
More information about the kernel-team
mailing list