source: client/shared/lib/os-probes/init/10filesystems @ 1d1e06d

Last change on this file since 1d1e06d was 2cd8344, checked in by adv <adv@…>, 8 years ago

#796 os-probes librerias de grub con detección de nuevas versiones de sistemas opertativos (p.e win10). usado solo para ogLives antiguos (kernel 3.2)

git-svn-id: https://opengnsys.es/svn/branches/version1.1@5378 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100755
File size: 1.1 KB
Line 
1#!/bin/sh
2# Make sure filesystems are available.
3set +e  # ignore errors from modprobe
4
5FILESYSTEMS='ext2 ext3 ext4 xfs jfs msdos vfat ntfs minix hfs hfsplus qnx4 ufs btrfs'
6# fuse is needed to make grub-mount work.
7FILESYSTEMS="$FILESYSTEMS fuse"
8# The Ubuntu kernel udebs put a number of filesystem modules in
9# fs-{core,secondary}-modules. It's fairly cheap to check for these too.
10FILESYSTEMS="$FILESYSTEMS fs-core fs-secondary"
11
12if [ ! -e /var/lib/os-prober/modules ]; then
13        # Check for anna-install to make it easier to use os-prober outside
14        # d-i.
15        if type anna-install >/dev/null 2>&1 && [ -d /lib/debian-installer ]; then
16                for fs in $FILESYSTEMS; do
17                        ANNA_QUIET=1 DEBIAN_FRONTEND=none \
18                        log-output -t os-prober \
19                                anna-install "$fs-modules" || true
20                done
21                depmod -a >/dev/null 2>&1 || true
22        fi
23
24        for fs in $FILESYSTEMS; do
25                case "$fs" in
26                        fs-*)
27                                ;;
28                        *)
29                                modprobe "$fs" 2>/dev/null | logger -t os-prober
30                                ;;
31                esac
32        done
33
34        # We only want to keep this state inside d-i, so this is as good a
35        # check as any.
36        if type anna-install >/dev/null 2>&1 && [ -d /lib/debian-installer ]; then
37                touch /var/lib/os-prober/modules
38        fi
39fi
Note: See TracBrowser for help on using the repository browser.