home: hub: mkinitfs

Download patch

ref: 53d6845684e9bb2caacbfe19d31e0b8361836d93
parent: 7caf7668cc9c7c55aa1644b11bb674f4e025be93
author: Natanael Copa <ncopa@alpinelinux.org>
date: Mon May 18 09:44:57 CDT 2009

init: set permission on /root in case /root/.ssh was in apkovl

This is an ugly hack but i dont have any better ideas at the moment.

--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -255,6 +255,8 @@
 	ebegin "Loading user settings from $ovl"
 	unpack_apkovl "$ovl" $sysroot
 	eend $? $errstr
+	# hack, incase /root/.ssh was included in apkovl
+	[ -d "$sysroot/root" ] && chmod 700 "$sysroot/root"
 	umount /media/$i 2>/dev/null &
 	pkgs=$(sed 's/\#.*//' $sysroot/etc/lbu/packages.list 2>/dev/null)
 fi