TEST-99-RPM: generate rpms and exclude /boot loader entries

master
Harald Hoyer 2013-05-31 10:00:07 +02:00
parent d18fd0235b
commit fd28794bbc
2 changed files with 3 additions and 1 deletions

View File

@ -187,7 +187,7 @@ syncheck:
bash -n "$$i" ; ret=$$(($$ret+$$?)); \
done;exit $$ret

check: all syncheck
check: all syncheck rpm
@[ "$$EUID" == "0" ] || { echo "'check' must be run as root! Please use 'sudo'."; exit 1; }
@$(MAKE) -C test check


View File

@ -52,6 +52,8 @@ find / -xdev -type f -not -path '/var/*' \
-not -path '/etc/iscsi/initiatorname.iscsi' \
-not -path '/boot/*0-rescue*' \
-not -path '/dev/null' \
-not -path "/boot/loader/entries/\$(cat /etc/machine-id)-*" \
-not -path "/boot/\$(cat /etc/machine-id)/*" \
-exec rpm -qf '{}' ';' | \
grep -F 'not owned' &> /test.output
exit