generic/3.10: reduce number of ifdefs in the rootfs split code