summaryrefslogtreecommitdiffstats
path: root/rescue/make_rescue_img
diff options
context:
space:
mode:
authorMystery Man 535 <uid535@mandriva.org>2001-02-12 14:31:10 +0000
committerMystery Man 535 <uid535@mandriva.org>2001-02-12 14:31:10 +0000
commite04140f5b5d52f5a487804ba352b3f181fe40e75 (patch)
tree85d935df4599cff96d48a26c9cbdc62d93189810 /rescue/make_rescue_img
parenta4187a6f8070adda23d665cc1e4bd237518d70a9 (diff)
downloaddrakx-e04140f5b5d52f5a487804ba352b3f181fe40e75.tar
drakx-e04140f5b5d52f5a487804ba352b3f181fe40e75.tar.gz
drakx-e04140f5b5d52f5a487804ba352b3f181fe40e75.tar.bz2
drakx-e04140f5b5d52f5a487804ba352b3f181fe40e75.tar.xz
drakx-e04140f5b5d52f5a487804ba352b3f181fe40e75.zip
- add lspci, lspcidrake, vim-minimal
- better /etc/issue - better PS1 - write embryonic tool (installation of detected drivers according to pci cards)
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";