summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2010-10-09 16:39:38 +0000
committerOlivier Blin <oblin@mandriva.com>2010-10-09 16:39:38 +0000
commit2b95cbd830654f69592acdfd51dc83cb1b652c63 (patch)
tree64e163101190379e2e4549a5447111264eb28f7e
parent8b41833ff3f2dcc2b91d41533bbdd51acdf58a4d (diff)
downloaddraklive-2b95cbd830654f69592acdfd51dc83cb1b652c63.tar
draklive-2b95cbd830654f69592acdfd51dc83cb1b652c63.tar.gz
draklive-2b95cbd830654f69592acdfd51dc83cb1b652c63.tar.bz2
draklive-2b95cbd830654f69592acdfd51dc83cb1b652c63.tar.xz
draklive-2b95cbd830654f69592acdfd51dc83cb1b652c63.zip
add --tarball to build chroot tarball
-rwxr-xr-xdraklive7
1 files changed, 7 insertions, 0 deletions
diff --git a/draklive b/draklive
index aca97de..f9401c4 100755
--- a/draklive
+++ b/draklive
@@ -649,6 +649,11 @@ sub create_classical_bootloader {
output_p($live->get_system_root . '/boot/grub/menu.lst', build_grub_cfg_raw($live, $live->{media}, -e $initrd && $initrd_prefix, { oem_rescue_idx => $oem_rescue_idx }, $part_idx));
}
+sub create_tarball {
+ my ($live) = @_;
+ run_("tar", "cjf", get_disk_master_prefix($live) . ".tar.bz2", $live->get_system_root);
+}
+
sub set_device_label {
my ($device, $type, $label) = @_;
if ($type eq 'vfat') {
@@ -1595,6 +1600,7 @@ my @actions = (
{ name => 'post-install', do => \&post_install_system },
{ name => 'initrd', do => \&create_initrd },
{ name => 'boot', do => \&prepare_bootloader },
+ { name => 'tarball', do => \&create_tarball },
{ name => 'loop', do => \&create_loopback_files },
{ name => 'master', do => \&create_master },
{ name => 'image', do => \&create_image },
@@ -1664,6 +1670,7 @@ draklive [options]
--install install selected distribution in chroot
--boot prepare initrd and bootloader files
+ --tarball build chroot tarball
--loop build compressed loopback files
--master build master image
--image build compressed master image