summaryrefslogtreecommitdiffstats
path: root/tools/draklive
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-12-27 18:37:48 +0000
committerOlivier Blin <oblin@mandriva.org>2005-12-27 18:37:48 +0000
commit23d8650b738066f568aa1c3f2c7a9fca5f2a746d (patch)
tree433ec7ef8b178262cac4cf56e6539bb3683c0d51 /tools/draklive
parent60f9a744a50960737f6f5fd408b6251d177b72be (diff)
downloaddrakx-23d8650b738066f568aa1c3f2c7a9fca5f2a746d.tar
drakx-23d8650b738066f568aa1c3f2c7a9fca5f2a746d.tar.gz
drakx-23d8650b738066f568aa1c3f2c7a9fca5f2a746d.tar.bz2
drakx-23d8650b738066f568aa1c3f2c7a9fca5f2a746d.tar.xz
drakx-23d8650b738066f568aa1c3f2c7a9fca5f2a746d.zip
add --post_install option to run post install only (rpms and patches installation)
Diffstat (limited to 'tools/draklive')
-rwxr-xr-xtools/draklive7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/draklive b/tools/draklive
index f72e9a447..87dcf13f6 100755
--- a/tools/draklive
+++ b/tools/draklive
@@ -423,6 +423,11 @@ sub install_system {
if_($live->{system}{auto_install}, '--auto_install', abs_path($live->{system}{auto_install})),
if_($live->{system}{patch_install}, '--defcfg', abs_path($live->{system}{patch_install})))
or die "unable to install system chroot";
+ post_install_system($live);
+}
+
+sub post_install_system {
+ my ($live) = @_;
run_('urpmi',
'--root',
@@ -767,6 +772,7 @@ my $default_prefix = {
my @actions = (
{ name => 'clean', do => \&clean },
{ name => 'install', do => \&install_system },
+ { name => 'post_install', do => \&post_install_system },
{ name => 'initrd', do => \&create_initrd },
{ name => 'boot', do => \&prepare_bootloader },
{ name => 'loop', do => \&create_loopback_files },
@@ -847,6 +853,7 @@ draklive [options]
on the fly
--initrd build initrd only
+ --post_install run post install only (rpms and patches installation)
--config <file> use this configuration file as live description