]> code.ossystems Code Review - openembedded-core.git/commitdiff
rootfs_rpm: fix rootfs generation rm error
authorDarren Hart <dvhart@linux.intel.com>
Thu, 6 Jan 2011 00:45:56 +0000 (16:45 -0800)
committerDarren Hart <dvhart@linux.intel.com>
Thu, 6 Jan 2011 00:50:43 +0000 (16:50 -0800)
During a poky-image-minimal build I ran into the following error:
rm: cannot remove `/vol/1/dvhart/poky.git/build/tmp/work/atom-pc-poky-linux/poky-image-minimal-initramfs-1.0-r0/rootfs/install': Is a directory

This is caused by a missing -r (recursive) argument to rm. This patch
adds that to the rm command of rootfs_rpm.bbclass.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Bruce Ashfield <bruce.ashfield@windriver.com>
meta/classes/rootfs_rpm.bbclass

index 2f7d6916d9dafa03987927566b0d7b8b85416e46..8646eec1e1246d8806671d22668d4749277d0829 100644 (file)
@@ -206,7 +206,7 @@ EOF
        mv ${IMAGE_ROOTFS}/install/*.manifest ${T}/
 
        # Remove all remaining resolver files
-       rm -f ${IMAGE_ROOTFS}/install
+       rm -rf ${IMAGE_ROOTFS}/install
 
        log_check rootfs