summaryrefslogtreecommitdiffstats
path: root/move/make_live_tree_boot
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-11-04 17:46:21 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-11-04 17:46:21 +0000
commit86c0067f5ed07aa478eadc94d7336d30a846a87f (patch)
treedc3b58ad2bec824e525e9fa98872137250830170 /move/make_live_tree_boot
parentb8a3a693bfc7f06bf7083bee3b27139b123a6df3 (diff)
downloaddrakx-backup-do-not-use-86c0067f5ed07aa478eadc94d7336d30a846a87f.tar
drakx-backup-do-not-use-86c0067f5ed07aa478eadc94d7336d30a846a87f.tar.gz
drakx-backup-do-not-use-86c0067f5ed07aa478eadc94d7336d30a846a87f.tar.bz2
drakx-backup-do-not-use-86c0067f5ed07aa478eadc94d7336d30a846a87f.tar.xz
drakx-backup-do-not-use-86c0067f5ed07aa478eadc94d7336d30a846a87f.zip
- add links from totem to main tree
- don't rm libDrakX/*.pm too soon, remove symlinks first
Diffstat (limited to 'move/make_live_tree_boot')
-rwxr-xr-xmove/make_live_tree_boot18
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`));
}