Added tag 1.110.7-2~grml.01 for changeset e09269bfed3a
[live-initramfs-grml.git] / patches / grml_patch_toram.diff
1 --- a/scripts/live      2007-11-01 22:25:41.567739580 +0100
2 +++ b/scripts/live      2007-11-01 23:03:02.413731337 +0100
3 @@ -609,9 +609,19 @@
4         else
5                 if [ -n "${MODULETORAMFILE}" ]
6                 then
7 -                       cp ${MODULETORAMFILE} ${copyto} # copy only the filesystem module
8 -               else
9 -                       cp -a ${copyfrom}/* ${copyto}   # "cp -a" from busybox also copies hidden files
10 +                        log_begin_msg "Copying $MODULETORAMFILE to RAM" >/dev/console
11 +                       if [ -x /usr/bin/rsync ] ; then
12 +                          rsync -a --progress ${MODULETORAMFILE} ${copyto} 1>/dev/console # copy only the filesystem module
13 +                       else
14 +                          cp ${MODULETORAMFILE} ${copyto} # copy only the filesystem module
15 +                       fi
16 +               else
17 +                        log_begin_msg "Copying medium to RAM" >/dev/console
18 +                       if [ -x /usr/bin/rsync ] ; then
19 +                          rsync -a --progress ${copyfrom}/* ${copyto} 1>/dev/console  # "cp -a" from busybox also copies hidden files
20 +                       else
21 +                          cp -a ${copyfrom}/* ${copyto}   # "cp -a" from busybox also copies hidden files
22 +                       fi
23                 fi
24  
25                 livefs_root