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