summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2006-03-09 18:37:12 +0000
committerOlivier Blin <oblin@mandriva.org>2006-03-09 18:37:12 +0000
commitf8d04cc23cc41ad0ce7ca3421d714cf06978d8f3 (patch)
tree57d367fa02ff33110cd0d59ca3aaf3f8d7efd2dd /tools
parenta838dea00c5ea6605168e2b21f941ba7140827d1 (diff)
downloaddrakx-backup-do-not-use-f8d04cc23cc41ad0ce7ca3421d714cf06978d8f3.tar
drakx-backup-do-not-use-f8d04cc23cc41ad0ce7ca3421d714cf06978d8f3.tar.gz
drakx-backup-do-not-use-f8d04cc23cc41ad0ce7ca3421d714cf06978d8f3.tar.bz2
drakx-backup-do-not-use-f8d04cc23cc41ad0ce7ca3421d714cf06978d8f3.tar.xz
drakx-backup-do-not-use-f8d04cc23cc41ad0ce7ca3421d714cf06978d8f3.zip
don't override programs we copy in initrd by their busybox implementation
Diffstat (limited to 'tools')
-rwxr-xr-xtools/draklive2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/draklive b/tools/draklive
index 97cbd343a..afff52815 100755
--- a/tools/draklive
+++ b/tools/draklive
@@ -314,6 +314,8 @@ sub create_initrd_for_media {
cp_f('/usr/bin/strace', $initrd_tree . '/bin/');
my @l = map { /functions:/ .. /^$/ ? do { s/\s//g; split /,/ } : () } `busybox`;
shift @l;
+ #- don't override programs we copy in initrd
+ @l = difference2(\@l, [ qw(losetup mount) ]);
symlink('busybox', $initrd_tree . "/bin/$_") foreach @l;
}