Cloning of existing fedora install failing at switch root. Does systemd keep system state?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux