Explorar el Código

add Alpine Linux

Carlo Landmeter hace 7 años
padre
commit
e8eb6ad80c
Se han modificado 5 ficheros con 36 adiciones y 0 borrados
  1. 1 0
      README.md
  2. 1 0
      docs/index.md
  3. 29 0
      src/alpinelinux.ipxe
  4. 4 0
      src/boot.cfg
  5. 1 0
      src/linux.ipxe

+ 1 - 0
README.md

@@ -36,6 +36,7 @@ Full documentation is at ReadTheDocs:
 
 ### What Operating Systems are available?
 
+* [Alpine Linux](https://alpinelinux.org)
 * [Antergos](https://antergos.com)
 * [Arch Linux](https://www.archlinux.org)
 * [CentOS](https://centos.org)

+ 1 - 0
docs/index.md

@@ -40,6 +40,7 @@ You'll need to make sure to have [DOWNLOAD_PROTO_HTTPS](https://github.com/ipxe/
 
 #### What Operating Systems are currently available on netboot.xyz?
 
+* [Alpine Linux](https://alpinelinux.org)
 * [Antergos](https://antergos.com)
 * [Arch Linux](https://www.archlinux.org)
 * [CentOS](https://centos.org)

+ 29 - 0
src/alpinelinux.ipxe

@@ -0,0 +1,29 @@
+#!ipxe
+
+# Alpine Linux
+# https://alpinelinux.org
+
+goto ${menu}
+
+:alpinelinux
+set os Alpine Linux
+iseq ${arch} x86_64 && set bootarch x86_64 || set bootarch x86
+
+menu ${os} [${bootarch}]
+item latest-stable Latest stable
+item edge Edge (development)
+choose version || goto alpine_exit
+goto boot
+
+:boot
+set base-url http://dev.alpinelinux.org/~clandmeter/netboot/${version}/${bootarch}
+set repo-url http://${alpinelinux_mirror}/${alpinelinux_base_dir}/${version}/main
+imgfree
+kernel ${base-url}/vmlinuz-vanilla alpine_repo=${repo-url} modules=loop,squashfs modloop=${base-url}/modloop-vanilla quiet nomodeset
+initrd ${base-url}/initramfs-vanilla
+boot
+goto alpine_exit
+
+:alpine_exit
+clear menu
+exit 0

+ 4 - 0
src/boot.cfg

@@ -26,6 +26,10 @@ set ipxe_disk netboot.xyz-undionly.kpxe
 # official mirrors
 ##################
 :mirrors
+### Alpine Linux
+set alpinelinux_mirror dl-cdn.alpinelinux.org
+set alpinelinux_base_dir alpine
+
 ### ArchLinux
 set archlinux_mirror mirror.rackspace.com
 set archlinux_base_dir archlinux

+ 1 - 0
src/linux.ipxe

@@ -15,6 +15,7 @@ item manjaro ${space} Manjaro Linux
 item opensuse ${space} openSUSE
 item ubuntu ${space} Ubuntu
 item --gap All Others:
+item alpinelinux ${space} Alpine Linux (Experimental)
 item antergos ${space} Antergos
 item coreos ${space} CoreOS
 item devuan ${space} Devuan