summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>1999-10-20 11:07:23 +0000
committerFrancois Pons <fpons@mandriva.com>1999-10-20 11:07:23 +0000
commitf95112394da5120e768daf918d587aee58c679f7 (patch)
treea458d8fb48b6dd339344dc5ba1d74a26d7f9e338
parent0e4618f846150e3eed750554f4371469ac1cc609 (diff)
downloaddrakx-backup-do-not-use-f95112394da5120e768daf918d587aee58c679f7.tar
drakx-backup-do-not-use-f95112394da5120e768daf918d587aee58c679f7.tar.gz
drakx-backup-do-not-use-f95112394da5120e768daf918d587aee58c679f7.tar.bz2
drakx-backup-do-not-use-f95112394da5120e768daf918d587aee58c679f7.tar.xz
drakx-backup-do-not-use-f95112394da5120e768daf918d587aee58c679f7.zip
*** empty log message ***
-rwxr-xr-xmake_boot_img40
1 files changed, 39 insertions, 1 deletions
diff --git a/make_boot_img b/make_boot_img
index ea4533faf..41113fb07 100755
--- a/make_boot_img
+++ b/make_boot_img
@@ -22,7 +22,8 @@ $install = $ {{
$0 =~ /initrd/ ?
initrd($mnt, $img) :
- boot_img($mnt, $img);
+ msg_boot_img($mnt, $img);
+ #boot_img($mnt, $img);
sub __ { print @_, "\n"; system(@_); }
sub _ { __ @_; $? and die; }
@@ -69,6 +70,43 @@ label linux
_ "sync";
}
+sub msg_boot_img {
+ my ($mnt, $img) = @_;
+
+ __ "$sudo umount $mnt 2>/dev/null";
+ _ "bunzip2 -c $instdir/installinit/msgboot.img.bz2 > $img";
+ _ "$sudo mount -t msdos -o umask=0 $img $mnt -o loop";
+ _ "cat vmlinuz > $mnt/vmlinuz";
+ initrd("${mnt}2", "$mnt/$type.rdz");
+
+ output("$mnt/syslinux.cfg", "
+default linux
+prompt 1
+timeout 600
+display boot.msg
+F1 boot.msg
+F2 general.msg
+F3 expert.msg
+F4 rescue.msg
+F5 kickit.msg
+F6 param.msg
+label linux
+ kernel vmlinuz
+ append $ks ramdisk=32000 initrd=$type.rdz mdkinst $type
+label expert
+ kernel vmlinuz
+ append $ks expert ramdisk=32000 initrd=$type.rdz mdkinst $type
+label ks
+ kernel vmlinuz
+ append ks ramdisk=32000 initrd=$type.rdz mdkinst $type
+label rescue
+ kernel vmlinuz
+ append rescue root=/dev/fd0 load_ramdisk=1 prompt_ramdisk=1
+");
+ _ "cp -f $instdir/installinit/ks.cfg $mnt 2>/dev/null";
+ _ "sync";
+}
+
sub output {