Actually, it would be simpler still to add the /host directory to the set of excluded mount points at the start of the do loop because it's hardcoded in initrd as the mount point for the original root filesystem in the loopback file system whenever you specify the loop install boot option. It can't really be used for any other purpose so I'm not sure it's worth checking /proc/cmdline for the loop install boot option. What do you think?
Actually, it would be simpler still to add the /host directory to the set of excluded mount points at the start of the do loop because it's hardcoded in initrd as the mount point for the original root filesystem in the loopback file system whenever you specify the loop install boot option. It can't really be used for any other purpose so I'm not sure it's worth checking /proc/cmdline for the loop install boot option. What do you think?