home: hub: mkinitfs

Download patch

ref: 1d115251816a3f83a008883f1b9665c3d8f4d3a4
parent: f28692af036c37a4db5553ac928421cbc97c3ebd
author: Carlo Landmeter <clandmeter@alpinelinux.org>
date: Tue Feb 20 04:18:11 CST 2018

initramfs: do not relocate mountpoint for netboot

mountpoint cannot be located when repo is external.

--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -221,6 +221,10 @@
 		return
 	fi
 	while read dir; do
+		# skip http(s)/ftp repos for netboot
+		if ! [ -d "$dir" ]; then
+			continue
+		fi
 		local dev=$(df -P "$dir" | tail -1 | awk '{print $1}')
 		local mnt=$(find_mnt $dev $fstab)
 		if [ -n "$mnt" ]; then