[Fedora-livecd-list] tools/livecd-iso-to-disk.sh

Brian C. Lane bcl at fedoraproject.org
Thu Mar 1 00:40:24 UTC 2012


 tools/livecd-iso-to-disk.sh |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 98986b7f168d2ba3a8b470c0eecb45c6f4de38ae
Author: Brian C. Lane <bcl at redhat.com>
Date:   Wed Feb 29 16:24:37 2012 -0800

    livecd-iso-to-disk: Add 2MB slop to calculation

diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index db57067..533a13d 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -432,7 +432,7 @@ createGPTLayout() {
     else
         p2_size=0
     fi
-    p1_size=$(($dev_size - 1 - $p2_size))
+    p1_size=$(($dev_size - 3 - $p2_size))
 
     if [ $p1_size -le 0 ]; then
         echo "Your device isn't big enough to hold $SRC"
@@ -485,7 +485,7 @@ createMSDOSLayout() {
     else
         p2_size=0
     fi
-    p1_size=$(($dev_size - 1 - $p2_size))
+    p1_size=$(($dev_size - 3 - $p2_size))
 
     if [ $p1_size -le 0 ]; then
         echo "Your device isn't big enough to hold $SRC"
@@ -542,7 +542,7 @@ createEXTFSLayout() {
     else
         p2_size=0
     fi
-    p1_size=$(($dev_size - 1 - $p2_size))
+    p1_size=$(($dev_size - 3 - $p2_size))
 
     if [ $p1_size -le 0 ]; then
         echo "Your device isn't big enough to hold $SRC"




More information about the livecd mailing list