I'd like the initrd to mount /dev/my_real_root and then use a directory inside this filesystem when chrooting. Currently you can only chroot to the root of the fs. I know this might not be useful for the average user but it would be helpful if for instance one bootstraps a new gentoo system inside his old fs (/root/next_try/ for instance) and would try to boot it before replacing the old system with the new one. Reproducible: Always Steps to Reproduce: 1. Try to make genkernel's initrd cd to a path inside the real_root fs 2. 3. Actual Results: doesnt do it Expected Results: after mounting the fs cd to a speciefied directory and continue from there on
would a subdir=/foo type command work for you?
Sure, everything is fine. I just need this to test a new gentoo root which I compiled somewhere inside my filesystem. So if subdir=/foo chroots to $mount_point_of_real_root/foo its fine with me.
Fixed in 3.2.0_pre10, thanks!