From fd43d643686a99ffa23063d3abc473a960d7af6d Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 4 Aug 2010 14:55:26 +0000 Subject: use busybox.static if present in chroot --- lib/MDV/Draklive/Initrd.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/MDV/Draklive/Initrd.pm b/lib/MDV/Draklive/Initrd.pm index 35f95e2..b88b9c7 100644 --- a/lib/MDV/Draklive/Initrd.pm +++ b/lib/MDV/Draklive/Initrd.pm @@ -100,6 +100,9 @@ sub create_media_specific_initrd { #- detect usb-storage process (we need sh/while/ps/grep) #- mount loopbacks read-only with losetup (useful over NFS) my $busybox = '/usr/bin/busybox'; + my $busybox_static = '/bin/busybox.static'; + $busybox = $busybox_static if -e $root . $busybox_static; + inst_initrd_bin($root, $initrd_tree, $busybox); my @l = map { /functions:/ .. /^$/ ? do { s/\s//g; split /,/ } : () } run_program::rooted_get_stdout($root, $busybox); shift @l; -- cgit v1.2.1