From 8e08cc10e38c38155cc3cf0f46de277f2b6265cb Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Fri, 6 Apr 2001 15:07:21 +0000 Subject: fixed absence of /boot in install CD for oem stuff. --- rescue/tree/etc/oem | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'rescue') diff --git a/rescue/tree/etc/oem b/rescue/tree/etc/oem index 3c397731a..92dd74e1e 100755 --- a/rescue/tree/etc/oem +++ b/rescue/tree/etc/oem @@ -148,7 +148,18 @@ mkdir "/mnt"; system "mount", "-t", "ext2", "/dev/$hd$root", "/mnt"; print "Copying installation on hard drive\n"; -system "cp", "-a", "/boot", "/cdrom/boot", "/hd"; +if (-e "/boot/vmlinuz" && -e "/boot/hd.rdz" || -e "/cdrom/boot/vmlinuz" && -e "/cdrom/boot/hd.rdz") { + system "cp", "-a", "/boot", "/cdrom/boot", "/hd"; +} else { + mkdir "/hd/boot"; + unless (-e "/tmp/hd/vmlinuz" && -e "/tmp/hd/hd.rdz") { + mkdir "/tmp/hd"; + system "modprobe", "loop"; + system "mount", "/cdrom/images/hd.img", "/tmp/hd", "-o", "loop"; + } + system "cp", "-a", "/tmp/hd/vmlinuz", "/tmp/hd/hd.rdz", "/hd/boot"; +} + mkdir "/hd/Mandrake"; mkdir "/hd/Mandrake/RPMS"; system "cp", "-a", "/cdrom/Mandrake/base", "/cdrom/Mandrake/mdkinst", "/hd/Mandrake"; -- cgit v1.2.1