summaryrefslogtreecommitdiffstats
path: root/rescue/make_rescue_img
diff options
context:
space:
mode:
Diffstat (limited to 'rescue/make_rescue_img')
-rwxr-xr-xrescue/make_rescue_img9
1 files changed, 9 insertions, 0 deletions
diff --git a/rescue/make_rescue_img b/rescue/make_rescue_img
index a26fa7f2c..8d35efe5a 100755
--- a/rescue/make_rescue_img
+++ b/rescue/make_rescue_img
@@ -31,6 +31,13 @@ sub install_ {
sub install { install_($_[0], "-a") }
sub install_lib { install_($_[0], "") }
+sub installown($$) {
+ my ($own, $dir) = @_;
+ return if -e "$tmp$dir$own";
+ commands::mkdir_("-p", "$tmp$dir") unless -d "$tmp$dir";
+ _ "$sudo cp -a $own $tmp$dir";
+}
+
_ "$sudo rm -rf $tmp" if -e $tmp;
_ "mkdir $tmp";
_ 'find . -name "*~" | xargs rm -f';
@@ -58,6 +65,8 @@ foreach (cat_("aliases")) {
}
_ "cp ../modules/modules.{cz*,dep} $tmp/modules";
+installown("drvinst", "/usr/bin");
+
_ "install -s kernel_read_part $tmp/sbin" if $arch =~ /i.86/;
__ "$sudo strip $tmp/{lib,bin,sbin}/* $tmp/usr/{bin,sbin}/* 2>/dev/null";