diff options
author | Francois Pons <fpons@mandriva.com> | 2001-04-06 15:07:21 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2001-04-06 15:07:21 +0000 |
commit | 8e08cc10e38c38155cc3cf0f46de277f2b6265cb (patch) | |
tree | eb8bff2afa55acaf7c9a302bf856be3b0c6963de /rescue | |
parent | d167ed58e93bec47119e1fb541442ba7a18df325 (diff) | |
download | drakx-8e08cc10e38c38155cc3cf0f46de277f2b6265cb.tar drakx-8e08cc10e38c38155cc3cf0f46de277f2b6265cb.tar.gz drakx-8e08cc10e38c38155cc3cf0f46de277f2b6265cb.tar.bz2 drakx-8e08cc10e38c38155cc3cf0f46de277f2b6265cb.tar.xz drakx-8e08cc10e38c38155cc3cf0f46de277f2b6265cb.zip |
fixed absence of /boot in install CD for oem stuff.
Diffstat (limited to 'rescue')
-rwxr-xr-x | rescue/tree/etc/oem | 13 |
1 files changed, 12 insertions, 1 deletions
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"; |