diff options
author | Matthias Badaire <mbadaire@mandriva.com> | 2001-07-04 19:35:54 +0000 |
---|---|---|
committer | Matthias Badaire <mbadaire@mandriva.com> | 2001-07-04 19:35:54 +0000 |
commit | ff19b12f08a9a15cdbf8cf9363ccb1d64d9d8223 (patch) | |
tree | 806cf012cb7d9a654eb837ebf796386f8173596f /make_boot_img | |
parent | 49179d897c48c131d8e43d1e6da3ef013907f567 (diff) | |
download | drakx-ff19b12f08a9a15cdbf8cf9363ccb1d64d9d8223.tar drakx-ff19b12f08a9a15cdbf8cf9363ccb1d64d9d8223.tar.gz drakx-ff19b12f08a9a15cdbf8cf9363ccb1d64d9d8223.tar.bz2 drakx-ff19b12f08a9a15cdbf8cf9363ccb1d64d9d8223.tar.xz drakx-ff19b12f08a9a15cdbf8cf9363ccb1d64d9d8223.zip |
Ia64 Adaptation
Diffstat (limited to 'make_boot_img')
-rwxr-xr-x | make_boot_img | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/make_boot_img b/make_boot_img index 6afa19df9..ca226f309 100755 --- a/make_boot_img +++ b/make_boot_img @@ -72,7 +72,7 @@ sub initrd { my $tar = "$instdir/stage1-data/stage1.tar.bz2"; __ "$sudo umount $tmp $mnt 2>/dev/null"; - _ "dd if=/dev/zero of=$tmp bs=1k count=" . ($type eq "all" ? 4000 : 2000); + _ "dd if=/dev/zero of=$tmp bs=1k count=" . ($arch =~ /ia64/ ? ($type eq "all" ? 12000 : 12000) : ($type eq "all" ? 4000 : 2000)); _ "$mke2fs $tmp"; _ "$sudo mount -t ext2 $tmp $mnt -o loop"; @@ -214,6 +214,32 @@ sub boot_img_alpha { _ "df $mnt"; } +sub boot_img_ia64 { + my ($mnt, $img, $kernel) = @_; + + __ "$sudo umount $mnt 2>/dev/null"; + _ "dd if=/dev/zero of=$img bs=1k count=12000"; + _ "mkdosfs $img"; + _ "$sudo mount -t vfat $img $mnt -o loop,umask=000"; + _ "$sudo cp -f $kernel $mnt/vmlinux"; + _ "cp -f images/$type.rdz $mnt/$type.rdz"; + _ "$sudo cp -f tools/ia64/elilo.efi $mnt"; + output("$mnt/elilo.conf", " +prompt +timeout=50 + +image=vmlinux + label=linux + root=/dev/ram3 + initrd=$type.rdz + append=\"ramdisk_size=120000\" + read-only +"); + _ "sync"; + _ "df $mnt"; + +} + sub boot_img_sparc { my ($mnt, $img) = @_; if ($type =~ /^live(.*)/) { |