summaryrefslogtreecommitdiffstats
path: root/draklive
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-12-15 11:54:21 +0000
committerOlivier Blin <oblin@mandriva.com>2009-12-15 11:54:21 +0000
commit5671c368441f77724b7d277c5b2c4ca798d3b9c3 (patch)
tree0a974c9e3da3b68162ceb572b37ccad130e79220 /draklive
parent6a44b71a11e1423e2f24313a35d9867d56f8d035 (diff)
downloaddrakiso-5671c368441f77724b7d277c5b2c4ca798d3b9c3.tar
drakiso-5671c368441f77724b7d277c5b2c4ca798d3b9c3.tar.gz
drakiso-5671c368441f77724b7d277c5b2c4ca798d3b9c3.tar.bz2
drakiso-5671c368441f77724b7d277c5b2c4ca798d3b9c3.tar.xz
drakiso-5671c368441f77724b7d277c5b2c4ca798d3b9c3.zip
write image size in master list file
Diffstat (limited to 'draklive')
-rwxr-xr-xdraklive5
1 files changed, 4 insertions, 1 deletions
diff --git a/draklive b/draklive
index 94c231b..f0ba70a 100755
--- a/draklive
+++ b/draklive
@@ -1298,7 +1298,10 @@ sub record_usb_replicator {
}
record_rescue_files($live->{mnt}, $slash->{real_device}, [ get_disk_replicator_files($live) ]);
- output_p($live->{mnt} . "/images/list", "EN,English," . basename(get_disk_image_path($live)) . ",on\n");
+
+ my $master_path = get_disk_master_path($live);
+ my $master_size = (stat($master_path))[7];
+ output_p($live->{mnt} . "/images/list", "EN,English," . basename(get_disk_image_path($live)) . ",on,$master_size\n");
run_('umount', $slash->{real_device});
maybe_umount_device($slash->{real_device});