diff options
author | Olivier Blin <oblin@mandriva.com> | 2010-10-09 16:39:38 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2010-10-09 16:39:38 +0000 |
commit | 2b95cbd830654f69592acdfd51dc83cb1b652c63 (patch) | |
tree | 64e163101190379e2e4549a5447111264eb28f7e /draklive | |
parent | 8b41833ff3f2dcc2b91d41533bbdd51acdf58a4d (diff) | |
download | drakiso-2b95cbd830654f69592acdfd51dc83cb1b652c63.tar drakiso-2b95cbd830654f69592acdfd51dc83cb1b652c63.tar.gz drakiso-2b95cbd830654f69592acdfd51dc83cb1b652c63.tar.bz2 drakiso-2b95cbd830654f69592acdfd51dc83cb1b652c63.tar.xz drakiso-2b95cbd830654f69592acdfd51dc83cb1b652c63.zip |
add --tarball to build chroot tarball
Diffstat (limited to 'draklive')
-rwxr-xr-x | draklive | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |