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

webconsole3
Last change on this file since f53877a was 1236d17, checked in by jm.bardallo <juanmanuel.bardallo@…>, 7 years ago

añadidos nuevamente los ficheros de opengnsys del branch devel, se habían quitado por error

  • Property mode set to 100644
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.