Calculating size for the whole media "/live/image/", not only the dir "/live/image...
authorSteven Shiau <steven@nchc.org.tw>
Mon, 24 Jun 2013 12:20:43 +0000 (14:20 +0200)
committerDaniel Baumann <mail@daniel-baumann.ch>
Mon, 24 Jun 2013 12:21:37 +0000 (14:21 +0200)
scripts/boot/9990-toram-todisk.sh

index 2643eb8..e7938e0 100755 (executable)
@@ -10,7 +10,7 @@ copy_live_to ()
 
        if [ -z "${MODULETORAM}" ]
        then
-               size=$(fs_size "" ${copyfrom}/${LIVE_MEDIA_PATH} "used")
+               size=$(fs_size "" ${copyfrom}/ "used")
        else
                MODULETORAMFILE="${copyfrom}/${LIVE_MEDIA_PATH}/${MODULETORAM}"