home: hub: mkinitfs

Download patch

ref: e1b6dfa483fe13464fb947b069114943eb95984b
parent: c6d2818c536940c4e3f254009beb6d5426e2519c
author: Natanael Copa <ncopa@alpinelinux.org>
date: Tue Jun 12 10:07:10 CDT 2018

init: dont install wget

ssl_client provides the https support for busybox wget

--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -266,19 +266,6 @@
 	[ "$n" != 0 ] || return 1
 }
 
-# possible cmdline options which could have secure urls.
-# this does not include apkovl as it need to be fetched inside of initramfs
-need_wget() {
-	local opt= ret=1
-	for opt in modloop ssh_key; do
-		eval "opt=\$KOPT_$opt"
-		case "$opt" in
-			https://*|ftps://*) ret=0;;
-		esac
-	done
-	return $ret
-}
-
 # read the kernel options. we need surve things like:
 #  acpi_osi="!Windows 2006" xen-pciback.hide=(01:00.0)
 set -- $(cat /proc/cmdline)
@@ -646,9 +633,6 @@
 	pkgs="$pkgs openssh"
 	rc_add sshd default
 fi
-
-# add wget if using secure urls in cmdline
-need_wget && pkgs="$pkgs wget"
 
 apkflags="--initramfs-diskless-boot --progress"
 if [ -z "$ALPINE_REPO" ]; then