1. 16 Mar, 2012 2 commits
  2. 12 Mar, 2012 1 commit
  3. 05 Mar, 2012 2 commits
  4. 23 Feb, 2012 10 commits
  5. 03 Feb, 2012 1 commit
  6. 11 Jan, 2012 1 commit
  7. 05 Jan, 2012 3 commits
  8. 16 Dec, 2011 1 commit
  9. 04 Dec, 2011 1 commit
  10. 03 Dec, 2011 5 commits
  11. 02 Dec, 2011 4 commits
  12. 29 Nov, 2011 3 commits
  13. 28 Nov, 2011 6 commits
    • Gerardo Exequiel Pozzi's avatar
    • Gerardo Exequiel Pozzi's avatar
      [archiso] Checksum only aitab and *.sfs (per architecture) · cd359bc3
      Gerardo Exequiel Pozzi authored
      
      
      We are currently checksuming all files inside $archisobasedir
      (aitab, *sfs, kernel/initramfs and boot/syslinux related files)
      this is stored in one file only. Its works good for now,
      but I think we only need to checksum only aitab and *.sfs if they are needed.
      Currently if you boot a dual-iso in i686, also checksum is done
      for *.sfs of x86_64. Not a big issue, this just take a bit more time.
      The real issue is when booting via PXE with HTTP/FTP methods,
      since they download only aitab and needed *.sfs files,
      can not use directly the only one file where checksums are stored.
      
      This patch does:
      
      (1) Do not checksum syslinux related files, anyway you are already reach initramfs stage.
      (2) Do not checksum kernel/initramfs files, for the same as (1)
      (3) Two checksum.${arch}.md5 for each i686 and x86_64 for only aitab and *.sfs.
      Signed-off-by: default avatarGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
      cd359bc3
    • Gerardo Exequiel Pozzi's avatar
      [configs/releng] Make all syslinux bootloaders works with the sames configs. · 0411fc90
      Gerardo Exequiel Pozzi authored
      
      
      * In that way, we have unified directory scheme among {pxe,sys,ext,iso}linux,
        sharing the same directory structure and config files.
      * Also enable IPAPPEND (will show a warning message about unknown directive in non-pxelinux before menu)
      
      NEW:
      * Rename syslinux*.cfg -> archiso*.cfg
      * Now syslinux.cfg is only a "loadconfig" trick like we are doing for isolinux
      * All paths are now relative to %INSTALL_DIR% ($archisobasedir) (Default: /arch/)
      Signed-off-by: default avatarGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
      0411fc90
    • Gerardo Exequiel Pozzi's avatar
      [archiso] Add DNS resolver support to archiso_pxe_common · 8bd06746
      Gerardo Exequiel Pozzi authored
      [ramfs /]# cat /etc/resolv.conf
      nameserver 192.168.0.77
      [ramfs /]# curl -O http://releng.archlinux.org/pxeboot/README
      
      
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
      100  1129  100  1129    0     0   2191      0 --:--:-- --:--:-- --:--:--  4589
      [ramfs /]#
      
      Do not "add_binary /lib/libnss_dns.so.2", because will add libnss_dns-VERSION.so.2 as libnss_dns.so.2
      Is not an issue will work (nobody links directly to VERSION), but is not nice.
      Signed-off-by: default avatarGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
      8bd06746
    • Gerardo Exequiel Pozzi's avatar
      [archiso] Add PXE NFS support · 76dea165
      Gerardo Exequiel Pozzi authored
      It add support for using *.sfs images via NFS.
      
      It must be located after archiso_pxe_nbd in mkinitcpio.conf, in that way
      NBD is the default.
      
      New boot parameters:
      
          archiso_nfs_srv=IP:/path
               Set the NFS IP and path. Accepts ${pxeserver} as IP.
      
          archiso_nfs_opt= Sets NFS mount opts (comma separated)
                          Defaults to:
                            port            = as given by server portmap daemon
                            rsize           = 1024
                            wsize           = 1024
                            timeo           = 7
                            retrans         = 3
                            acregmin        = 3
                            acregmax        = 60
                            acdirmin        = 30
                            acdirmax        = 60
                            flags           = hard, nointr, noposix, cto, ac
      
      :: Running Hook [archiso_pxe_common]
      IP-Config: eth0 hardware address 52:54:00:12:34:57 mtu 1500
      IP-Config: eth0 guessed broadcast address 192.168.0.255
      IP-Config: eth0 guessed nameserver address 192.168.0.218
      IP-Config: eth0 complete (from 192.168.0.218):
       address: 192.168.0.90     broadcast: 192.168.0.255    netmask: 255.255.255.0
       gateway: 192.168.0.218    dns0     : 192.168.0.218    dns1   : 0.0.0.0
       rootserver: 192.168.0.218 rootpath:
       filename  :
      :: Running Hook [archiso_pxe_nbd]
      :: Running Hook [archiso_pxe_curl]
      :: Running Hook [archiso_pxe_nfs]
      :: Mounting '192.168.0.77:/mnt/iso'
      
      ...
      192.168.0.77:/mnt/iso/ on /run/archiso/bootmnt type nfs (rw,relatime,vers=3,rsize=524288,wsize=524288,namlen=255,hard,nolock,proto=tcp,port=65535,timeo=7,retrans=3,sec=sys,local_lock=all,addr=192.168.0.77)
      ...
      
      My /etc/exports
      /mnt/iso 192.168.0.90(ro,no_subtree_check,no_root_squash)
      76dea165
    • Gerardo Exequiel Pozzi's avatar
      [archiso] Add archiso_pxe_curl hook · 8eb4c624
      Gerardo Exequiel Pozzi authored
      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.
      
      New bootparm:
      * archiso_curl_url=(first form)
          archiso_curl_url=http://192.168.0.7/archlinux/iso/archlinux.iso (absolute form)
              Use an absolute URL. Fetch the entire ISO
          archiso_curl_url=ftp://${pxeserver}/archlinux/iso/archlinux.iso (relative form)
              Use the as IP the same server where PXE reside.  Fetch the entire ISO
      
      * archiso_curl_url=(second form)
          archiso_curl_url=http://192.168.0.7/archlinux/iso/unpacked
      
       (absolute form)
              Use an absolute URL. Where unpacked (an example name) is a directory where
              ${archisobasedir} ("arch" by default) is located with all *.sfs.
              This fetch only needed files.
          archiso_curl_url=ftp://${pxeserver}/archlinux/iso/unpacked (relative form)
              Use the as IP the same server where PXE reside. Where unpacked (an example name)
              is a directory where ${archisobasedir} ("arch" by default)
              is located with all *.sfs. This fetch only needed files.
      
      * curlspace_size= Set a size for a tmpfs filesystem where files are downloaded.
      Signed-off-by: default avatarGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
      8eb4c624