home: hub: mkinitfs

Download patch

ref: 351dd25e8b0f80511d81185c2561e3002bdc4564
parent: eafbb4c1f914b41cc06e4c8e4f2b682355517fe9
author: ptrcnull <git@ptrcnull.me>
date: Tue Sep 27 00:39:44 CDT 2022

init: relocate mount for the apkovl file according to its fstab

fixes #5

--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -223,9 +223,9 @@
 	if ! [ -e $repofile ]; then
 		return
 	fi
-	while read dir; do
+	echo "$ovl" | cat - $repofile | while read dir; do
 		# skip http(s)/ftp repos for netboot
-		if ! [ -d "$dir" ]; then
+		if ! [ -d "$dir" -o -f "$dir" ]; then
 			continue
 		fi
 		local dev=$(df -P "$dir" | tail -1 | awk '{print $1}')
@@ -237,7 +237,7 @@
 				mount -o move "$oldmnt" "$mnt"
 			fi
 		fi
-	done < $repofile
+	done
 }
 
 # find the dirs under ALPINE_MNT that are boot repositories