move compression type discovery into compression.c ramdisk and kernels
now call into the same function