aboutsummaryrefslogtreecommitdiffstats
path: root/initramfs-init.in
diff options
context:
space:
mode:
Diffstat (limited to 'initramfs-init.in')
-rwxr-xr-xinitramfs-init.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/initramfs-init.in b/initramfs-init.in
index 1680543..0a864a9 100755
--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -432,8 +432,10 @@ eend $?
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=""