off_mods += $(filter-out $(base_mods) $(mod_mods) $(off_mods),$(notdir $(detected_mods)))
# filesystems to be used in labeling targets
-filesystems = $(shell mount | grep -v "context=" | egrep -v '\((|.*,)bind(,.*|)\)' | awk '/(ext[23]| xfs| jfs).*rw/{print $$3}';)
+filesystems = $(shell mount | grep -v "context=" | egrep -v '\((|.*,)bind(,.*|)\)' | awk '/(ext[234]|btrfs| xfs| jfs).*rw/{print $$3}';)
+fs_names := "btrfs ext2 ext3 ext4 xfs jfs"
########################################
#
# Filesystem labeling
#
checklabels:
- @echo "Checking labels on filesystem types: ext2 ext3 xfs jfs"
+ @echo "Checking labels on filesystem types: $(fs_names)"
@if test -z "$(filesystems)"; then \
echo "No filesystems with extended attributes found!" ;\
false ;\
$(verbose) $(SETFILES) -v -n $(fcpath) $(filesystems)
restorelabels:
- @echo "Restoring labels on filesystem types: ext2 ext3 xfs jfs"
+ @echo "Restoring labels on filesystem types: $(fs_names)"
@if test -z "$(filesystems)"; then \
echo "No filesystems with extended attributes found!" ;\
false ;\
$(verbose) $(SETFILES) -v $(fcpath) $(filesystems)
relabel:
- @echo "Relabeling filesystem types: ext2 ext3 xfs jfs"
+ @echo "Relabeling filesystem types: $(fs_names)"
@if test -z "$(filesystems)"; then \
echo "No filesystems with extended attributes found!" ;\
false ;\
$(verbose) $(SETFILES) $(fcpath) $(filesystems)
resetlabels:
- @echo "Resetting labels on filesystem types: ext2 ext3 xfs jfs"
+ @echo "Resetting labels on filesystem types: $(fs_names)"
@if test -z "$(filesystems)"; then \
echo "No filesystems with extended attributes found!" ;\
false ;\