commit: 4f0697afaa4a62ab391bafc604fe5cb17a73ef46
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 13 21:43:25 2014 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sun Apr 13 21:43:25 2014 +0000
URL:
http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=4f0697af
Fix LVM build as non-root.
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
---
gen_compile.sh | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/gen_compile.sh b/gen_compile.sh
index f0f8fee..7e85a86 100755
--- a/gen_compile.sh
+++ b/gen_compile.sh
@@ -470,9 +470,8 @@ compile_lvm() {
print_info 1 'lvm: >> Compiling...'
compile_generic '' utils
compile_generic "install DESTDIR=${TEMP}/lvm/" utils
- echo "Finding static"
- find ${TEMP}/lvm -name '*static'
- echo "Done finding static"
+ # For some bizzare reason, upstream does u-w on files, and this
breaks stuff.
+ chmod -R u+w "${TEMP}/lvm/"
cd "${TEMP}/lvm"
mkdir -p "${TEMP}/lvm/sbin"
@@ -480,7 +479,6 @@ compile_lvm() {
pwd
${UTILS_CROSS_COMPILE}strip "sbin/lvm.static" ||
gen_die 'Could not strip lvm.static!'
- exit 99
# See bug 382555
${UTILS_CROSS_COMPILE}strip "sbin/dmsetup.static" ||
gen_die 'Could not strip dmsetup.static'