From b0521d1942ef977c490de319d0121a8770f074a1 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 30 Jul 2009 17:31:15 +0000 Subject: use real partition size (remove hardcoded oem_rescue size) --- draklive | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/draklive b/draklive index d03128f..b9ec914 100755 --- a/draklive +++ b/draklive @@ -763,7 +763,8 @@ sub create_disk_master { directory_usage($live->get_builddir . $live->{prefix}{build}{boot}) + directory_usage($live->get_builddir . $live->{prefix}{build}{files}) + 70000000) : - directory_usage($live->get_system_root) + 200000000 + 4500000000; #- FIXME: use size from $live->{media}{partitions} + directory_usage($live->get_system_root) + 200000000 + fold_left { $::a + $::b } map { $_->{size} * $common::SECTORSIZE } @{$live->{media}{partitions}}; + #- FIXME: use size from $live->{media}{partitions} for / too my @loops = allocate_master($live, $live->{media}, $dest, $disk_size, $live->{media}->get_media_setting('fs')); my $slash_idx = $live->{media}->find_partition_index('/'); -- cgit v1.2.1