copy from ref test-rebuild-kernel fc19kbuild.sh and snap3-built-config