home: hub: mkinitfs

Download patch

ref: 388946d581e7c5fdc57418b32a90bf70cb2b49c9
parent: f8542102cc332ac9916ef3ef1c7a8123157cf4b1
author: Natanael Copa <ncopa@alpinelinux.org>
date: Wed Oct 27 07:30:10 CDT 2010

init: only copy .alpine-release if there are no /etc/alpine-release from before

--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -432,8 +432,10 @@
 setup_inittab_console $CONSOLE
 
 # copy alpine release info
-cp $ALPINE_MNT/.alpine-release $sysroot/
-ln -sf /.alpine-release $sysroot/etc/alpine-release
+if ! [ -f "$sysroot"/etc/alpine-release ]; then
+	cp $ALPINE_MNT/.alpine-release $sysroot/
+	ln -sf /.alpine-release $sysroot/etc/alpine-release
+fi
 
 # setup bootchart for switch_root
 chart_init=""