Build error in warewulf-provision

21 views
Skip to first unread message

John Hanks

unread,
Aug 7, 2016, 7:30:08 AM8/7/16
to Warewulf-devel
When building warewulf-provision (trunk, revision 1998) I am getting this error:

mkdir rootfs/lib64
chmod -R u+w rootfs/
cp -a _work/busybox-1.22.1/_install/* rootfs/
cp _work/e2fsprogs-1.42.12/misc/mke2fs rootfs/sbin/mkfs.ext4
ln -s mkfs.ext4 rootfs/sbin/mkfs.ext3
cp -a _work/libarchive-3.1.2/bsdtar rootfs/bin/bsdtar
cp -L --parents /lib*/ld-linux* rootfs/
find -type d \! -perm -u=w -print | xargs chmod u+w 
chmod: missing operand after ‘u+w’
Try 'chmod --help' for more information.
make[1]: *** [rootfs] Error 123
make[1]: Leaving directory `/srv/warewulf/sources/warewulf/provision/initramfs'
make: *** [all-recursive] Error 1

which I worked around with this patch to initramfs/Makefile.am:

Index: initramfs/Makefile.am
===================================================================
--- initramfs/Makefile.am (revision 1998)
+++ initramfs/Makefile.am (working copy)
@@ -84,7 +84,7 @@
  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 -type d \! -perm -u=w -print | xargs chmod u+w 
+ find -type d \! -perm -u=w -exec 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


jbh

Gregory M. Kurtzer

unread,
Aug 7, 2016, 11:24:04 AM8/7/16
to warewulf-devel
Thanks! Committed in r1999!
--
Gregory M. Kurtzer
High Performance Computing Services (HPCS)
University of California
Lawrence Berkeley National Laboratory
One Cyclotron Road, Berkeley, CA 94720
Reply all
Reply to author
Forward
0 new messages