[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#504549: initramfs-tools: please add mtd/jffs2/ubifs modules to initrd when 'most' is selected



Package: initramfs-tools
Version: 0.92l
Severity: wishlist

OLPC laptops use jffs2 or ubifs for their root filesystem, along with
cafe_nand and mtd for the lower level devices.  The following patch is
necessary for building a modular kernel on the XO.  Please consider
including it!

>From 8854095ef36c80a4178bc2ea93fe80415019bc34 Mon Sep 17 00:00:00 2001
From: Andres Salomon <dilinger@debian.org>
Date: Tue, 14 Oct 2008 14:19:12 -0400
Subject: [PATCH] include mtd, jffs2, and ubifs modules

This adds support for mtd/jffs/ubifs when 'most' is selected.  Note
that this doesn't fix 'dep'.

Signed-off-by: Andres Salomon <dilinger@debian.org>
---
 debian/changelog |    7 +++++++
 hook-functions   |    7 +++++++
 2 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 1d73a4a..de7f8f5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+initramfs-tools (0.92l.1) unstable; urgency=high
+
+  * NMU
+  * include mtd/jffs2/ubifs modules when 'most' is selected.
+
+ -- Andres Salomon <dilinger@debian.org>  Tue, 14 Oct 2008 14:16:50 -0400
+
 initramfs-tools (0.92l) unstable; urgency=high
 
   * Revert "initramfs-tools: Add support for linux-2.6 make deb-pkg
diff --git a/hook-functions b/hook-functions
index 53867da..1c9f303 100644
--- a/hook-functions
+++ b/hook-functions
@@ -347,6 +347,12 @@ auto_add_modules()
 	mmc)
 		copy_modules_dir kernel/drivers/mmc
 	;;
+	mtd)
+		copy_modules_dir kernel/drivers/mtd
+		for x in jffs2 ubifs; do
+			manual_add_modules "${x}"
+		done
+	;;
 	scsi)
 		copy_modules_dir kernel/drivers/scsi
 		for x in mptfc mptsas mptscsih mptspi zfcp; do
@@ -392,6 +398,7 @@ auto_add_modules()
 		auto_add_modules ieee1394
 		auto_add_modules firewire
 		auto_add_modules mmc
+		auto_add_modules mtd
 	;;
 	esac
 }
-- 
1.5.6.5


Reply to: