Re: relabel

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

 



On Dec 25, 2013, at 5:48 PM, Patrick Dupre <pdupre@xxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxxxx
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




[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