Am 23.11.2011 21:02, schrieb Thomas Bächler:
Am 23.11.2011 01:00, schrieb Gerardo Exequiel Pozzi:
Its add support for downloading the ISO image via HTTP/FTP with curl or download *.sfs files. The files are downloaded on /run/archiso/curlspace (tmpfs) and setup a loop dev from it (like in archiso_loop_mnt) in the ISO case, or just do a bind mount to /run/archiso/bootmnt in the other case.
This hook must be located after archiso_pxe_nbd in mkinitcpio.conf, in that way NBD is the default.
This is extremely useful. Can we get a resolver into initramfs, so we can use URLs instead of IPs? Can we also have an extracted version of the netinstall-dual image on releng, instead of only the ISO?
We can use this in the following way: Either load gpxelinux via network boot, or boot gpxe from floppy/USB/CD/hard drive/a "kernel" image. Then, fetch syslinux configuration file and .c32 files via http. The configuration file can contain a menu that allows to choose an architecture and a mirror, allowing to boot the kernel and initrd via http or ftp, then using the archiso_pxe_curl hook to download and mount the .sfs files.
Also: when can we get an image on releng that contains this hook?
This is what I have in mind (test it, it's fun). https://releng.archlinux.org/pxeboot/ https://releng.archlinux.org/pxeboot/README As I said, all we need to finalize this is 1) the extracted ISO image (aitab, .sfs) on releng (or, for a release, on all mirrors), 2) preferably a resolver in the initramfs.