On Dec 25, 2013, at 5:48 PM, Patrick Dupre <pdu...@gmx.com> wrote:

> Hello,
> 
> I wanted to clone my distribution fedora 19, I used to do it with
> previous release but I failed with fedora 19.
> 
> I copy (-a) the partition / (lvm2) and /boot (ext4)

You probably need to remake the initramfs. The easiest way to do all of this 
after the cp -a of everything is to put together the clone at /mnt such that 
you have /mnt as rootfs, then /mnt/boot, and then use mount -B to mount the 
faux file systems, /proc, /dev/, /sys at their respective locations, /mnt/proc, 
/mnt/dev, /mnt/sys. Then chroot /mnt.

Now blkid to find the uuids for /boot and /, and change fstab so that it's 
mounting the right volumes. Use dracut -f to make a new initramfs. And then 
grub2-mkconfig -o /boot/grub2/grub.cfg to make a new grub.cfg.

If you started out with a system with correct labels, the cp -a will preserve 
them as it implies -Z so fixfiles/restorecon isn't needed.

Chris Murphy
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to