r1997 - Build fix for non-writable directories created by busybox

5 views
Skip to first unread message

com...@warewulf.lbl.gov

unread,
Aug 5, 2016, 4:39:47 PM8/5/16
to warewul...@lbl.gov
Author: gmk
Date: 2016-08-05 13:39:46 -0700 (Fri, 05 Aug 2016)
New Revision: 1997

Modified:
trunk/provision/initramfs/Makefile.am
Log:
Build fix for non-writable directories created by busybox


Modified: trunk/provision/initramfs/Makefile.am
===================================================================
--- trunk/provision/initramfs/Makefile.am 2016-07-25 17:41:28 UTC (rev 1996)
+++ trunk/provision/initramfs/Makefile.am 2016-08-05 20:39:46 UTC (rev 1997)
@@ -84,7 +84,8 @@
ln -s mkfs.ext4 rootfs/sbin/mkfs.ext3
cp -a _work/$(LIBARCHIVE_DIR)/bsdtar rootfs/bin/bsdtar
cp -L --parents /lib*/ld-linux* rootfs/
- find rootfs -type f -perm -o+x -print | grep -v ld-linux | xargs ldd | grep "=>" | awk '{print $$3}' | grep "^/" | sort | uniq | while read i; do cp -L --parents $$i rootfs/; done
+ find -type d \! -perm -u=w -print | xargs chmod u+w
+ find rootfs -type f -perm -o+x -print | grep -v ld-linux | xargs ldd | grep "=>" | awk '{print $$3}' | grep "^/" | sort | uniq | while read i; do cp -L --parents $$i rootfs/; done
find rootfs -type f -perm -o+x -print | xargs strip -g
rm -f rootfs/linuxrc
install -m 755 $(srcdir)/init rootfs/init

Reply all
Reply to author
Forward
0 new messages