summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaximilian Mehnert <maximilian.mehnert@gmx.de>2015-07-15 16:29:46 +0200
committerMaximilian Mehnert <maximilian.mehnert@gmx.de>2015-09-23 10:44:11 +0200
commit8a52e569f50138eb8fd3526fb62058d54c7c8522 (patch)
tree2134f65bd6945ce2642cdc41ebeb71d4b11f014f
parentb6771e736022d31b0cb53c552a0f7a42a1028a09 (diff)
downloadvyos-live-build-8a52e569f50138eb8fd3526fb62058d54c7c8522.tar.gz
vyos-live-build-8a52e569f50138eb8fd3526fb62058d54c7c8522.zip
force link creation when diverting flash-kernel
"ln -s /bin/true chroot/usr/sbin/flash-kernel" fails if the target already exists.
-rwxr-xr-xscripts/build/chroot_dpkg2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build/chroot_dpkg b/scripts/build/chroot_dpkg
index 7007e0569..b02dc648f 100755
--- a/scripts/build/chroot_dpkg
+++ b/scripts/build/chroot_dpkg
@@ -64,7 +64,7 @@ EOF
# flash-kernel
Chroot chroot dpkg-divert --rename --quiet --add /usr/sbin/flash-kernel
- ln -s /bin/true chroot/usr/sbin/flash-kernel
+ ln -fs /bin/true chroot/usr/sbin/flash-kernel
# Creating stage file
Create_stagefile .build/chroot_dpkg