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

Bug#666261: [os-prober] "unknown udeb fuse-modules" when installing



Package: os-prober
Version: 1.51
Severity: minor
Tags: patch

When installing, the following is logged to syslog:

Mar 29 16:03:30 anna-install: Installing fuse-modules
Mar 29 16:03:30 os-prober: unknown udeb fuse-modules

This is due to /usr/lib/os-probes/init/10filesystems which uses the same list of filesystems both for installing and loading LKMs. But this module, fuse, is not in the installer.

NOTE: fuse *can* be loaded in the installer if fuse is in the installed kernel. This will happen in practice when the installer's flavour matches the installed flavour (say when installing 486 with a i386 installer) and something running in the target probes fuse.

The attached patch fixes that. It also slightly optimizes and minimizes the code run with set +e.

--- 10filesystems	2011-04-09 06:19:55.000000000 -0400
+++ 10filesystems.patched	2012-03-29 14:04:45.706707994 -0400
@@ -1,15 +1,13 @@
 #!/bin/sh
 # Make sure filesystems are available.
-set +e	# ignore errors from modprobe
-
-FILESYSTEMS='ext2 ext3 ext4 reiserfs xfs jfs msdos vfat ntfs minix hfs hfsplus qnx4 ufs btrfs'
-# fuse is needed to make grub-mount work.
-FILESYSTEMS="$FILESYSTEMS fuse"
-# The Ubuntu kernel udebs put a number of filesystem modules in
-# fs-{core,secondary}-modules. It's fairly cheap to check for these too.
-FILESYSTEMS="$FILESYSTEMS fs-core fs-secondary"
 
 if [ ! -e /var/lib/os-prober/modules ]; then
+	FILESYSTEMS='ext2 ext3 ext4 reiserfs xfs jfs msdos vfat ntfs minix hfs hfsplus qnx4 ufs btrfs'
+
+	# The Ubuntu kernel udebs put a number of filesystem modules in
+	# fs-{core,secondary}-modules. It's fairly cheap to check for these too.
+	FILESYSTEMS="$FILESYSTEMS fs-core fs-secondary"
+
 	# Check for anna-install to make it easier to use os-prober outside
 	# d-i.
 	if type anna-install >/dev/null 2>&1 && [ -d /lib/debian-installer ]; then
@@ -21,6 +19,10 @@
 		depmod -a >/dev/null 2>&1 || true
 	fi
 
+	# fuse is needed to make grub-mount work.
+	FILESYSTEMS="$FILESYSTEMS fuse"
+
+	set +e	# ignore errors from modprobe
 	for fs in $FILESYSTEMS; do
 		case "$fs" in
 			fs-*)

Reply to: