We can have the full filesystem structure of any OS in a directory. To which we can chroot, so it will behave as good as native login.Is there any way to install the an OS onto a partition with the help of chroot ?e.g. I want to install Ubuntu-14.04 in my /home/SHW/Ubuntu-14.04 directory. Once installed, I can chroot into it and can do some user-space work ( Installing the OS onto a partition and mounting that at /home/SHW/Ubuntu-14.04 is not what I'm looking for)EDIT:Though I have mentioned Ubuntu in original question, but my target OS is developed by third party from scratch. As per the @mattdm, debootstrap is useful for ubuntu. But I need almost similar solution to install any OS
Install OS in a directory
ubuntu;system installation