summaryrefslogtreecommitdiffstats
path: root/make_boot_img
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-02-18 00:54:38 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-02-18 00:54:38 +0000
commitfabf3d9d6f72454f07c187c0433b1c65b2e632b0 (patch)
tree7336066336a11b7527ac3c7266bffa934874d0b7 /make_boot_img
parent5a5cadc58c1711c3a3019fc284a6010b24af1471 (diff)
downloaddrakx-backup-do-not-use-fabf3d9d6f72454f07c187c0433b1c65b2e632b0.tar
drakx-backup-do-not-use-fabf3d9d6f72454f07c187c0433b1c65b2e632b0.tar.gz
drakx-backup-do-not-use-fabf3d9d6f72454f07c187c0433b1c65b2e632b0.tar.bz2
drakx-backup-do-not-use-fabf3d9d6f72454f07c187c0433b1c65b2e632b0.tar.xz
drakx-backup-do-not-use-fabf3d9d6f72454f07c187c0433b1c65b2e632b0.zip
no_comment
Diffstat (limited to 'make_boot_img')
-rwxr-xr-xmake_boot_img9
1 files changed, 3 insertions, 6 deletions
diff --git a/make_boot_img b/make_boot_img
index 6b137b826..2ea53fc24 100755
--- a/make_boot_img
+++ b/make_boot_img
@@ -109,24 +109,21 @@ label rescue
sub boot_img_alpha {
my ($mnt, $img) = @_;
- my $sizek = int ((-s "vmlinux.gz") / 1024 + 130);
__ "$sudo umount $mnt 2>/dev/null";
- _ "dd if=/dev/zero of=$img bs=1k count=$sizek";
+ _ "dd if=/dev/zero of=$img bs=1k count=1440";
_ "$mke2fs $img";
_ "/sbin/e2writeboot $img /boot/bootlx";
_ "$sudo mount -t ext2 $img $mnt -o loop";
_ "cp -f vmlinux.gz $mnt";
- -f "$type.rdz" or initrd("${mnt}2", "$type.rdz");
+ -f "$type.rdz" ? _ "cp -f $type.rdz $mnt" : initrd("${mnt}2", "$mnt/$type.rdz");
mkdir "$mnt/etc", 0777;
output("$mnt/etc/aboot.conf",
-"0:vmlinux.gz load_ramdisk=1 prompt_ramdisk=0 ramdisk_start=$sizek root=/dev/fd0 mdkinst rw ramdisk=32000
+"0:vmlinux.gz initrd=$type.rdz mdkinst rw ramdisk=32000
");
_ "sync";
_ "df $mnt";
- __ "$sudo umount $mnt 2>/dev/null";
- _ "cat $type.rdz >> $img";
}
sub boot_img_sparc {