918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacion
Rev | Line | |
---|
[2cd8344] | 1 | #!/bin/sh |
---|
| 2 | # Make sure filesystems are available. |
---|
| 3 | set +e # ignore errors from modprobe |
---|
| 4 | |
---|
| 5 | FILESYSTEMS='ext2 ext3 ext4 xfs jfs msdos vfat ntfs minix hfs hfsplus qnx4 ufs btrfs' |
---|
| 6 | # fuse is needed to make grub-mount work. |
---|
| 7 | FILESYSTEMS="$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. |
---|
| 10 | FILESYSTEMS="$FILESYSTEMS fs-core fs-secondary" |
---|
| 11 | |
---|
| 12 | if [ ! -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 |
---|
| 39 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.