[Rear-users] SF.net SVN: rear:[750] trunk/usr/share/rear/skel/default/etc/scripts/ system-setup.d/40-start-udev-or-load-modules.sh

Schlomo Schapiro schlomo at schapiro.org
Tue Jan 17 21:36:22 CET 2012


Nice one!

On 17 January 2012 17:14, <dag- at users.sourceforge.net> wrote:

> Revision: 750
>          http://rear.svn.sourceforge.net/rear/?rev=750&view=rev
> Author:   dag-
> Date:     2012-01-17 16:14:44 +0000 (Tue, 17 Jan 2012)
> Log Message:
> -----------
> Do not load nbd together with all other storage drivers (to prevent nbd*
> devices to stuff restore menu, eg. on RHEL4)
>
> Modified Paths:
> --------------
>
>  trunk/usr/share/rear/skel/default/etc/scripts/system-setup.d/40-start-udev-or-load-modules.sh
>
> Modified:
> trunk/usr/share/rear/skel/default/etc/scripts/system-setup.d/40-start-udev-or-load-modules.sh
> ===================================================================
> ---
> trunk/usr/share/rear/skel/default/etc/scripts/system-setup.d/40-start-udev-or-load-modules.sh
>       2012-01-16 15:00:45 UTC (rev 749)
> +++
> trunk/usr/share/rear/skel/default/etc/scripts/system-setup.d/40-start-udev-or-load-modules.sh
>       2012-01-17 16:14:44 UTC (rev 750)
> @@ -29,8 +29,8 @@
>        if test -s /etc/modules ; then
>                while read module options ; do
>                        case "$module" in
> -                               \#*|"") : ;;
> -                               *)      modprobe -v $module $options ;;
> +                               (\#*|"") ;;
> +                               (*) modprobe -v $module $options;;
>                        esac
>                done </etc/modules
>        fi
> @@ -43,12 +43,14 @@
>        #
>        # Especially how to analyse a running system and load the same
> drivers and bind them to the same devices in
>        # the correct order
> -       for m in $(find /lib/modules/$(uname
> -r)/kernel/drivers/{scsi,block,ide,message,ata} -type f 2>/dev/null) ; do
> -               modprobe -q $(basename $m .ko)
> +       echo "Loading storage modules..."
> +       for module in $(find /lib/modules/$(uname
> -r)/kernel/drivers/{scsi,block,ide,message,ata} -type f 2>/dev/null) ; do
> +               case "$module" in
> +                       (nbd) echo "Module nbd excluded from being
> autoloaded.";;
> +                       (*) modprobe -q $(basename $module .ko);;
> +               esac
>        done
>  fi
>
>  # device mapper gets a special treatment here because there is no
> dependency to load it
>  modprobe -q dm-mod
> -
> -
>
> This was sent by the SourceForge.net collaborative development platform,
> the world's largest Open Source development site.
>
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Rear-users mailing list
> Rear-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rear-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://pikachu.3ti.be/pipermail/rear-users/attachments/20120117/5befb651/attachment.html 


More information about the rear-users mailing list