diff options
Diffstat (limited to 'rescue/tree/etc')
-rwxr-xr-x | rescue/tree/etc/oem | 8 |
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"; } |