From 3691204b9676f2b5a4df0b4cafa2d057243e0abd Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 2 Nov 2007 16:55:27 +0000 Subject: run postInstall after copying packages --- draklive | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/draklive b/draklive index 8d8a451..281f8cc 100755 --- a/draklive +++ b/draklive @@ -793,15 +793,15 @@ sub post_install_system { copy_files_to($live, $live->{system}{files}, get_system_root($live)); - run_({ setarch => $live->{settings}{arch} }, - "chroot", get_system_root($live), "bash", "-c", $live->{system}{postInstall}) if $live->{system}{postInstall}; - eval { rm_rf(get_builddir($live) . $live->{prefix}{build}{files}) }; mkdir_p(get_builddir($live) . $live->{prefix}{build}{files}); if ($live->{media}{files}) { copy_files_to($live, $live->{media}{files}, get_builddir($live) . $live->{prefix}{build}{files}); } + run_({ setarch => $live->{settings}{arch} }, + "chroot", get_system_root($live), "bash", "-c", $live->{system}{postInstall}) if $live->{system}{postInstall}; + run_("chroot " . get_system_root($live) . " rpm -qa | sort > " . get_builddir($live) . "/packages.lst"); #- workaround rpm bug that leaves a corrupted rpm DB in chroot -- cgit v1.2.1