From 23d8650b738066f568aa1c3f2c7a9fca5f2a746d Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 27 Dec 2005 18:37:48 +0000 Subject: add --post_install option to run post install only (rpms and patches installation) --- tools/draklive | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tools') 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 use this configuration file as live description -- cgit v1.2.1