aboutsummaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-01-29 20:06:19 +0300
committerCem Keylan <cem@ckyln.com>2020-01-29 20:06:19 +0300
commit0e51e65a42a336b4036c0644fedf12012cb37ff9 (patch)
treebf84b2dc64dbaae405e5b1fa3b18cc96cca05eac /extra
parent5656140a7b437a3f86170f594083a3434cc0c07a (diff)
downloadrepository-0e51e65a42a336b4036c0644fedf12012cb37ff9.tar.gz
lvm2: remove -i from sed on build
Diffstat (limited to 'extra')
-rwxr-xr-xextra/lvm2/build7
1 files changed, 5 insertions, 2 deletions
diff --git a/extra/lvm2/build b/extra/lvm2/build
index ffa71785..c10f9cd0 100755
--- a/extra/lvm2/build
+++ b/extra/lvm2/build
@@ -7,8 +7,11 @@ patch -p1 < disable-symver.patch
# Busybox doesn't provide this command, however
# all it does is split words one per line and
# 'tr' can be used in its place.
-sed -i 's/fmt -1/tr " " "\\n"/' \
- make.tmpl.in libdm/make.tmpl.in
+for file in make.tmpl.in libdm/make.tmpl.in ; do
+ sed 's/fmt -1/tr " " "\\n"/' $file > $file.bak
+ mv $file.bak $file
+done
+
# The build fails when using busybox's 'mkdir'(?),
# swap to using 'install -d' instead which works.