From 5f8d80b6934f3a829ea4add81faaaa85a1ec8392 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 21 Nov 2003 12:35:25 +0000 Subject: - don't remove /dev in live_tree - have a correct /etc/rpm/macros in live_tree - fix menu i18n --- move/make_live | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/move/make_live b/move/make_live index 8b038c8af..b63186238 100755 --- a/move/make_live +++ b/move/make_live @@ -9,8 +9,9 @@ my @langs = map { /^../; $& } split /\s/, (cat_('move.pm') =~ /ALLOWED_LANGS = q @ARGV <= 1 or die "usage: make_live [live_location=/tmp/live_tree]\n"; sub installPackages { - rename "/etc/rpm/macros", "/etc/rpm/macros."; - output_p("/etc/rpm/macros", "%_install_langs " . join(":", @langs) . "\n"); + output_p("$::prefix/etc/rpm/macros", "%_install_langs " . join(":", @langs) . "\n"); + rename '/etc/rpm/macros', '/etc/rpm/macros.'; + system('cp', "$::prefix/etc/rpm/macros", '/etc/rpm/macros'); mkdir_p("$::prefix/var/lib/rpm"); mkdir_p("$::prefix/root/drakx"); @@ -71,10 +72,10 @@ print "Making live in $::prefix directory.\n"; installPackages(); run_program::rooted($::prefix, 'ldconfig'); touch("$::prefix/etc/menu/enable_simplified"); + $ENV{LC_ALL} = 'en_US'; #- update-menus doesn't work when there is no locale (aka locale "C") run_program::rooted($::prefix, 'update-menus', '-n'); run_program::rooted($::prefix, 'fc-cache'); #- generate cache in all directories mentioned in config file run_program::rooted($::prefix, 'kbuildsycoca', '--global'); - eval { rm_rf("$::prefix/dev") }; # we don't need it, we use devfs eval { rm_rf("$::prefix/lib/i686") }; # de-complexify, use the default on any arch unlink "$::prefix/usr/share/autostart/$_.desktop" foreach 'klipper', 'korgac', 'kalarmd.autostart'; -- cgit v1.2.1