common: replace chattr with $CHATTR_PROG

We have a wrapper around chattr to make sure people don't do the wrong thing on
their boxes, so we need to be able to specify CHATTR_PROG and have it actually
work, so replace all chattr calls with $CHATTR_PROG.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Josef Bacik
2016-04-05 11:46:12 +10:00
committed by Dave Chinner
parent ddc9483644
commit 102ffa0c96
34 changed files with 41 additions and 41 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ echo "+ mount image (2)"
_scratch_mount
echo "+ chattr -R -i"
chattr -R -f -i ${SCRATCH_MNT}/
$CHATTR_PROG -R -f -i ${SCRATCH_MNT}/
echo "+ copy more (2)"
cp -p ${SCRATCH_MNT}/file1 ${SCRATCH_MNT}/file5 || \