home: hub: mkinitfs

Download patch

ref: 949bd6f298590a6b4fe71783c15bac313cbc2923
parent: 18606801f741a34affbd0628737417daadd0c620
author: Natanael Copa <ncopa@alpinelinux.org>
date: Mon Jan 18 04:12:04 CST 2016

init: dont launch emergency shell if http repo is specified

we we specify a repo with boot option then we should not launch an
emergency shell even if no repo was found.

This is needed for pxe boot.

--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -379,11 +379,17 @@
 	exec /bin/busybox sh
 fi
 
+if [ -n "$ALPINE_REPO" ]; then
+	repoopts="-n"
+else
+	repoopts="-b $repofile"
+fi
+
 # locate boot media and mount it
 ebegin "Mounting boot media"
 nlplug-findfs $cryptopts -p /sbin/mdev ${KOPT_debug_init:+-d} \
 	${KOPT_usbdelay:+-t $(( $KOPT_usbdelay * 1000 ))} \
-	-b $repofile -a /tmp/apkovls
+	$repoopts -a /tmp/apkovls
 eend $?
 
 # early console?