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

Bug#213265: partconf: fails to modprobe reiserfs



On Mon, Sep 29, 2003 at 06:00:00PM +0200, Sebastian Ley wrote:
> With switching to 2.4.22 we have everything in place to create and mount
> reiser filesystems. However although the userlandtools are present and
> the kernel modules are in place, partconf does not load the kernel
> modules and hence does not display the option to create reiserfs.
> 
> If I modprobe reiserfs manually and restart partconf, the reiserfs
> option becomes available.

Would you please test the following patch?

--- debian-installer/tools/partconf/partconf.c	2003-09-27 06:53:28.000000000 -0700
+++ /home/kraai/dev/debian-installer/tools/partconf/partconf.c	2003-09-29 13:26:45.000000000 -0700
@@ -560,7 +563,7 @@
 int
 main(int argc, char *argv[])
 {
-    int state = 0, ret;
+    int i, state = 0, ret;
     int (*states[])() = {
         partition_menu,
         filesystem,
@@ -569,10 +572,17 @@
         fixup, // never does an INPUT, just handles the manual mountpoint result
         NULL
     };
+
+    /* FIXME: How can we tell which file system modules to load?  */
+    char *file_system_modules[] = {"ext3", "reiserfs", "jfs", "xfs", NULL};
+
     debconf = debconfclient_new();
     debconf->command(debconf, "CAPB", "backup", NULL);
     ped_exception_set_handler(my_exception_handler);
-    modprobe("ext3 reiserfs jfs xfs"); // FIXME: Any others?
+
+    for (i = 0; file_system_modules[i]; i++)
+	modprobe(file_system_modules[i]);
+
     if (check_proc_mounts("")) {
         // Chicken out if /target is already mounted
         debconf->command(debconf, "SET", "partconf/already-mounted", "no", NULL);


-- 
Matt



Reply to: