diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-11-04 17:46:21 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-11-04 17:46:21 +0000 |
commit | 86c0067f5ed07aa478eadc94d7336d30a846a87f (patch) | |
tree | dc3b58ad2bec824e525e9fa98872137250830170 | |
parent | b8a3a693bfc7f06bf7083bee3b27139b123a6df3 (diff) | |
download | drakx-86c0067f5ed07aa478eadc94d7336d30a846a87f.tar drakx-86c0067f5ed07aa478eadc94d7336d30a846a87f.tar.gz drakx-86c0067f5ed07aa478eadc94d7336d30a846a87f.tar.bz2 drakx-86c0067f5ed07aa478eadc94d7336d30a846a87f.tar.xz drakx-86c0067f5ed07aa478eadc94d7336d30a846a87f.zip |
- add links from totem to main tree
- don't rm libDrakX/*.pm too soon, remove symlinks first
-rwxr-xr-x | move/make_live_tree_boot | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/move/make_live_tree_boot b/move/make_live_tree_boot index 3b97318b3..f575184ec 100755 --- a/move/make_live_tree_boot +++ b/move/make_live_tree_boot @@ -27,6 +27,16 @@ Maybe you should remove it first with 'make_live_tree_boot -u'\n"; symlink $link, $orig or die "symlinking from $dest to $orig failed: $!\n"; } } + + if ($live_name eq 'totem') { + foreach my $dir ('/usr/share', '/usr/lib', '/usr/bin', '/usr') { + foreach my $f (all("$prefix$dir")) { + my $file = "$prefix$dir/$f"; + my $link = readlink($file) =~ /^\w/ ? readlink($file) : "/image$dir/$f"; + symlink $link, "$light_prefix$dir/$f"; + } + } + } } sub remove_light_tree { @@ -50,10 +60,6 @@ sub remove_light_tree { } } } - system("rm -rf $light_prefix/usr/bin/stage2/*.pm"); - system("rm -rf $light_prefix/usr/lib/libDrakX/*.pm"); - system("rm -rf $light_prefix/usr/share/langs/*.png"); - rmdir($_) foreach reverse(chomp_(`find $light_prefix -type d`)); if (-e $light_prefix) { @@ -71,6 +77,10 @@ sub remove_light_tree { unlink $dest or die "removing $dest failed: $!\n"; rename $orig, $dest or die "moving $orig to $dest failed: $!\n"; } + system("rm -rf $light_prefix/usr/bin/stage2/*.pm"); + system("rm -rf $light_prefix/usr/lib/libDrakX/*.pm"); + system("rm -rf $light_prefix/usr/share/langs/*.png"); + rmdir($_) foreach reverse(chomp_(`find $light_prefix -type d`)); } |