pkg/rpm: use pkg memory size when checking config in init script

- for large configs, check can fail due to low memory