summaryrefslogtreecommitdiffstats
path: root/rescue/tree
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-03-06 15:51:52 +0000
committerFrancois Pons <fpons@mandriva.com>2002-03-06 15:51:52 +0000
commit5afd2e8d330936aec79cb5b53fc243ed143ba691 (patch)
tree6c9ed394dbdfac3abd2a114754b4a6916027970c /rescue/tree
parente7fa52820fba6a243600c049baf2ca670aae5a56 (diff)
downloaddrakx-backup-do-not-use-5afd2e8d330936aec79cb5b53fc243ed143ba691.tar
drakx-backup-do-not-use-5afd2e8d330936aec79cb5b53fc243ed143ba691.tar.gz
drakx-backup-do-not-use-5afd2e8d330936aec79cb5b53fc243ed143ba691.tar.bz2
drakx-backup-do-not-use-5afd2e8d330936aec79cb5b53fc243ed143ba691.tar.xz
drakx-backup-do-not-use-5afd2e8d330936aec79cb5b53fc243ed143ba691.zip
allow oem script to be executable from standard cd set (powerpack or other).
Diffstat (limited to 'rescue/tree')
-rwxr-xr-xrescue/tree/etc/oem8
1 files changed, 8 insertions, 0 deletions
diff --git a/rescue/tree/etc/oem b/rescue/tree/etc/oem
index 3601fb71e..7dc653c1e 100755
--- a/rescue/tree/etc/oem
+++ b/rescue/tree/etc/oem
@@ -346,6 +346,14 @@ if (-e "/cdrom/oem/vmlinuz" && -e "/cdrom/oem/all.rdz") {
} elsif (-e "/cdrom/boot/vmlinuz" && -e "/cdrom/boot/hd.rdz") {
system "cp", "-a", "/cdrom/boot/vmlinuz", "/hd/boot/vmlinuz";
system "cp", "-a", "/cdrom/boot/hd.rdz", "/hd/boot/all.rdz";
+} elsif (-e "/cdrom/images/hd.img") {
+ mkdir "/tmp/hd";
+ system "modprobe", "loop";
+ system "modprobe", "vfat";
+ system "mount", "-t", "vfat", "/cdrom/images/hd.img", "/tmp/hd", "-o", "loop";
+ system "cp", "-a", "/tmp/hd/vmlinuz", "/hd/boot/vmlinuz";
+ system "cp", "-a", "/tmp/hd/hd.rdz", "/hd/boot/all.rdz";
+ system "umount", "/tmp/hd";
} else {
die "no installation stage1 found";
}