Did you check the kernel command line in grub.cfg to see what root= is
set to? That is the only place I know specifically references what
to look for on the switch root.
On Tue, Jun 4, 2019 at 10:41 AM stan <stanl-fedorauser(a)vfemail.net> wrote:
>
> Hi,
> I'm trying to clone an existing Fedora install, just a / partition and
> a /boot partition, both ext4. I use rsync,
> # rsync -C -x -u -a -v -A -X /mnt/old/ /mnt/new
> to clone both partitions from a running Fedora.
> I then clean up the /etc/fstab and /boot/grub2/grub.cfg by changing the
> UUIDs of the / and boot partitions.
> Formerly, that would be enough. I would run mkconfig to find the new
> installs from an existing Fedora, and boot into them from the grub
> menu of that existing install.
>
> That failed at switch root. Research found that the initramfs is now
> hostonly, so will not boot on a different root. I generated a new
> initramfs using dracut with --no-hostonly on the existing / old
> install, and copied it to the new /boot. Then altered the new grub.cfg
> to use that as the initramfs, ran mkconfig in the existing / old
> install to pick up the change, and rebooted.
>
> Still not working, though it now fails because systemd kills itself
> after switch root. And hangs because it can't find /bin/bash. As near
> as I can tell, everything is there. /usr/sbin/init links
> to /usr/lib/systemd/systemd, and the initramfs has those links in it,
> so why is switch root failing? The only thing I can come up with is
> that systemd somehow keeps track of the system it was installed on, and
> is failing to find something from the old system because it isn't
> mounted.
>
> Can anyone offer any insight?
> _______________________________________________
> users mailing list -- users(a)lists.fedoraproject.org
> To unsubscribe send an email to users-leave(a)lists.fedoraproject.org
> Fedora Code of Conduct:
https://getfedora.org/code-of-conduct.html
> List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org