TEST-99-RPM: generate rpms and exclude /boot loader entries
parent
d18fd0235b
commit
fd28794bbc
2
Makefile
2
Makefile
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue