Created
December 20, 2012 21:11
-
-
Save devicenull/4348614 to your computer and use it in GitHub Desktop.
Linux iPXE net install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:centos6_x64 | |
set centos-version 6 | |
set arch x86_64 | |
set os centos | |
goto centos_installer | |
:centos6_i386 | |
set centos-version 6 | |
set arch i386 | |
set os centos | |
goto centos_installer | |
:centos5_x64 | |
set centos-version 5 | |
set arch x86_64 | |
set os centos | |
goto centos_installer | |
:centos5_i386 | |
set centos-version 5 | |
set arch i386 | |
set os centos | |
goto centos_installer | |
:centos_installer | |
kernel http://centos.mirror.constant.com/${centos-version}/os/${arch}/images/pxeboot/vmlinuz ramdisk_size=65535 ks=YOURKICKSTART noipv6 network kssendmac ksdevice=eth0 | |
initrd http://centos.mirror.constant.com/${centos-version}/os/${arch}/images/pxeboot/initrd.img | |
boot || | |
goto shell | |
:debianstable_x64 | |
set debian-version stable | |
set arch amd64 | |
goto debian_installer | |
:debianstable_i386 | |
set debian-version stable | |
set arch i386 | |
goto debian_installer | |
:debian_installer | |
kernel http://debian.mirror.constant.com/dists/${debian-version}/main/installer-${arch}/current/images/netboot/debian-installer/${arch}/linux auto url=YOURPRESEED interface=eth0 locale=en_US console-keymaps-at/keymap=us hostname=install domain=localdomain | |
initrd http://debian.mirror.constant.com/dists/${debian-version}/main/installer-${arch}/current/images/netboot/debian-installer/${arch}/initrd.gz | |
boot | |
:ubuntu1004_x64 | |
set ubuntu-version lucid | |
set arch amd64 | |
goto ubuntu_installer | |
:ubuntu1204_x64 | |
set ubuntu-version precise | |
set arch amd64 | |
goto ubuntu_installer | |
:ubuntu 1210_x64 | |
set ubuntu-version quantal | |
set arch amd64 | |
goto ubuntu_installer | |
:ubuntu_installer | |
kernel http://ubuntu.mirror.constant.com/dists/${ubuntu-version}/main/installer-${arch}/current/images/netboot/ubuntu-installer/${arch}/linux ks=YOURKICKSTART noipv6 network kssendmac ksdevice=eth0 | |
initrd http://ubuntu.mirror.constant.com/dists/${ubuntu-version}/main/installer-${arch}/current/images/netboot/ubuntu-installer/${arch}/initrd.gz | |
boot || | |
goto shell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment