From 5afd2e8d330936aec79cb5b53fc243ed143ba691 Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Wed, 6 Mar 2002 15:51:52 +0000 Subject: allow oem script to be executable from standard cd set (powerpack or other). --- rescue/tree/etc/oem | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'rescue/tree/etc/oem') 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"; } -- cgit v1.2.1