3ec0bc19fae60288e9f0647f77d292a38f4c62e7
[live-boot-grml.git] / debian / patches / 33_retry_phram.patch
1 commit d4619b77a669c70ae68d5da34de7655ffef80e04
2 Author: Michael Prokop <mika@grml.org>
3 Date:   Mon Jul 11 12:42:24 2011 +0200
4
5     Try loading phram module twice to fix loading issue.
6     
7     phram doesn't work on first modprobe, when loading once again it seems
8     to work. So let's try it this way.
9
10 diff --git a/scripts/live b/scripts/live
11 index 23d0bbc..e5d3186 100755
12 --- a/scripts/live
13 +++ b/scripts/live
14 @@ -1840,6 +1840,7 @@ mountroot ()
15                                 then
16                                         # We found a memdisk, set up phram
17                                         modprobe phram phram=memdisk,${MEMDISK}
18 +                                       modprobe phram phram=memdisk,${MEMDISK}
19  
20                                         # Load mtdblock, the memdisk will be /dev/mtdblock0
21                                         modprobe mtdblock