1. 16 Jan, 2020 1 commit
  2. 15 Jan, 2020 1 commit
    • Sören Tempel's avatar
      init: create cryptsetup locking directory · f52f1425
      Sören Tempel authored
      The LUKS2 cryptsetup format uses a locking mechanism, see the "LUKS2
      header locking" section in cryptsetup(8) for further information on this
      mechanism. The mechanism requires a locking directory, if it is not
      present it will be created automatically. Unfortunately, cryptsetup
      emits a warning when creating it.
      
      To silence this warning message make init create the directory.
      f52f1425
  3. 19 Dec, 2019 1 commit
  4. 06 Dec, 2019 1 commit
  5. 09 Oct, 2019 1 commit
  6. 07 Jun, 2019 2 commits
  7. 13 Mar, 2019 1 commit
  8. 08 Feb, 2019 1 commit
  9. 06 Feb, 2019 1 commit
    • Timo Teräs's avatar
      init: fix fbsplash · d7ee92e1
      Timo Teräs authored
      The configuration option was renamed when parts of our patch
      were upstreamed to busybox.
      d7ee92e1
  10. 25 Jan, 2019 1 commit
  11. 03 Jan, 2019 1 commit
  12. 08 Nov, 2018 5 commits
  13. 21 Aug, 2018 3 commits
  14. 28 Jun, 2018 1 commit
  15. 13 Jun, 2018 1 commit
  16. 12 Jun, 2018 4 commits
    • lemmarathon's avatar
      Add support for keyfiles · fdc28f07
      lemmarathon authored
      The "cryptkey" boot parameter enables keyfile decryption. By default,
      init will look for a keyfile named "/crypto_keyfile.bin". Another file
      may be specified like so: "cryptkey=/path/to/keyfile.bin". If keyfile
      decryption fails, init will fall back to passphrase mode.
      fdc28f07
    • Mick Tarsel's avatar
      Use first network interface that is up · 7e7fed4f
      Mick Tarsel authored
      Previous code would return eth0 every time and pay no attention
      if interface was up. This patch gets the state from operstate file
      in sysfs to use the interface that is actually up in case there
      are multiple interfaces present. If no interface is up, just use
      last interface.
      7e7fed4f
    • Natanael Copa's avatar
      init: dont install wget · e1b6dfa4
      Natanael Copa authored
      ssl_client provides the https support for busybox wget
      e1b6dfa4
    • Natanael Copa's avatar
      init: remove ssh_pass and make sure to start sshd · c6d2818c
      Natanael Copa authored
      ssh_pass is not recommended and causes some issues in firstboot. We
      remove support for it to keep things simple.
      
      also make sure that sshd is started if ssh_key is set
      c6d2818c
  17. 24 May, 2018 1 commit
    • Tuan M. Hoang's avatar
      initramfs-init: add support for ssh installer · 64be7028
      Tuan M. Hoang authored
      This commit allows starting 'firstboot' service (see aports/openrc),
      which will setup installation through SSH if specified in kernel
      parameters.
      
      Real wget is used instead since busybox's wget is broken without
      openssl binary #8917. Credits to clandmeter.
      
      - Allow adding DNS server in configure_ip()
      - Prefix kernel parameters with KOPT_
      64be7028
  18. 14 May, 2018 1 commit
  19. 20 Feb, 2018 1 commit
  20. 18 Feb, 2018 1 commit
  21. 19 Jan, 2018 1 commit
    • Manuel Mendez's avatar
      handle more than 2 blacklisted modules in cmdline · 153150ff
      Manuel Mendez authored
      example:
      ```sh
      ❯ docker run --rm -ti alpine
      / # KOPT_blacklist=igb,ixgbe,tg3
      / # for i in ${KOPT_blacklist/,/ }; do echo "blacklist $i"; done
      blacklist igb
      blacklist ixgbe,tg3
      / # for i in ${KOPT_blacklist//,/ }; do echo "blacklist $i"; done
      blacklist igb
      blacklist ixgbe
      blacklist tg3
      ```
      153150ff
  22. 09 Jan, 2018 1 commit
    • Henrik Riomar's avatar
      skip hooks on diskless install · 0bd97e8a
      Henrik Riomar authored
      We can not run hooks before musl and busybox is installed.
      
      Use the new flag --initramfs-diskless-boot in order to skip hooks.
      This flag also implies --initdb and the relevant --force flags for
      initramfs diskless boot.
      0bd97e8a
  23. 22 Sep, 2017 1 commit
  24. 03 Aug, 2017 1 commit
  25. 14 Jun, 2017 2 commits
    • Manuel Mendez's avatar
    • Manuel Mendez's avatar
      init: properly parse kernel serial console options · f50d400c
      Manuel Mendez authored
      According to https://www.kernel.org/doc/Documentation/admin-guide/serial-console.rst
      the serial port options is specified as:
      "... BBBBPNF, where BBBB is the speed, P is parity (n/o/e), N is number of bits,
      and F is flow control ('r' for RTS)." Parity and Number of bits are ignored
      since getty does not have any options for them.
      
      I tested the paramater substitution using the following script/snippet:
      
      ```sh
      / # cat /etc/alpine-release; cat kernel2getty.sh; sh kernel2getty.sh
      3.5.2
      consoles="ttyS0 ttyS0,115200 ttyS0,115200n8 ttyS0,115200n8r ttyS0,115200r"
      for console in $consoles; do
             line=-L
             term=vt100
             tty=${console%,*}
             speed=${console#*,}
             flow=${speed##*[^r]}
             speed=${speed%%[^0-9]*}
             echo "console=$console"
             echo "  speed=$speed"
             echo "   flow=$flow"
             echo "  getty=getty ${flow:+-h }$line ${speed:-15200} $tty $term"
             echo "----------"
      done
      console=ttyS0
        speed=
         flow=
        getty=getty -L 15200 ttyS0 vt100
      ----------
      console=ttyS0,115200
        speed=115200
         flow=
        getty=getty -L 115200 ttyS0 vt100
      ----------
      console=ttyS0,115200n8
        speed=115200
         flow=
        getty=getty -L 115200 ttyS0 vt100
      ----------
      console=ttyS0,115200n8r
        speed=115200
         flow=r
        getty=getty -h -L 115200 ttyS0 vt100
      ----------
      console=ttyS0,115200r
        speed=115200
         flow=r
        getty=getty -h -L 115200 ttyS0 vt100
      ----------
      ```
      
      closes #7037
      f50d400c
  26. 05 Apr, 2017 1 commit
  27. 13 Mar, 2017 1 commit
  28. 10 Jan, 2017 2 commits