transaction? Even if the rootdir is set to NULL you have to initialize it on rpm >= 4.1, otherwise all scriptlets will fail.