summaryrefslogtreecommitdiffstats
path: root/move/make_live
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-11-21 12:35:25 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-11-21 12:35:25 +0000
commit5f8d80b6934f3a829ea4add81faaaa85a1ec8392 (patch)
tree07218299f1cb27f9966eae6e1d7be4506b0aa063 /move/make_live
parentdd02902b228bb81ed46dd6c5637fe66a1fc406fa (diff)
downloaddrakx-5f8d80b6934f3a829ea4add81faaaa85a1ec8392.tar
drakx-5f8d80b6934f3a829ea4add81faaaa85a1ec8392.tar.gz
drakx-5f8d80b6934f3a829ea4add81faaaa85a1ec8392.tar.bz2
drakx-5f8d80b6934f3a829ea4add81faaaa85a1ec8392.tar.xz
drakx-5f8d80b6934f3a829ea4add81faaaa85a1ec8392.zip
- don't remove /dev in live_tree
- have a correct /etc/rpm/macros in live_tree - fix menu i18n
Diffstat (limited to 'move/make_live')
-rwxr-xr-xmove/make_live7
1 files 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';