Uuid error cloning FC19

asked 2013-12-11 12:50:13 -0500

drberta gravatar image

updated 2014-09-30 23:14:15 -0500

mether gravatar image

I have a problem cloning the FC19 on different devices. When a new cloned system starts, an error is sent by dracut and I cannot proceed. What I have to do to automatically create and replace the uuid number related with the disk of the new device into its grub.cfg file during the cloning process?

Thank you

edit retag flag offensive close merge delete


How do you clone them by the way? I guess the cloning tool has to handle that somehow (see tune2fs http://linuxconfig.org/how-to-retrieve-and-change-partitions-universally-unique-identifier-uuid-on-linux), or maybe try to get rid of uuids on a system to be cloned as mentioned here https://ask.fedoraproject.org/question/35365/i-dont-want-to-use-disk-uuid-on-fedora-19-but-how/ ?

marcindulak gravatar imagemarcindulak ( 2013-12-12 09:06:08 -0500 )edit

I use a usb key with a minimal live installation. From that live system I have a script creating the partitions and formatting the disk of the new unit. At this point I extract a tar.bz2 copy of the master system into the disk of the new unit. I need to do everything automatically without the operator intervention.

drberta gravatar imagedrberta ( 2013-12-12 16:34:26 -0500 )edit

What's in the tar.bz2 - any custom changes? When using tar try to use --selinux option to handle SELinux properly (i hope), and i guess your partitioning is the same for all machines - so my first comment applies. I was using a (dead now) project called systemimager - and that was using LABEL instead of UUID + did not work with SELinux. I would look into kickstart installation (see e.g. an EL5 guide for booting from USB+CD https://wiki.fysik.dtu.dk/niflheim/Building_a_Cluster_-_Tutorial/installing_server; google around + use kickstart "%post" to mount USB after install and apply any changes)

marcindulak gravatar imagemarcindulak ( 2013-12-14 09:17:08 -0500 )edit

Hi, I apologize for my late answer. Each tar.bz2 is the copy of the /dev/sdx content (I have 3 tar.bz2: one for "/" one for "/boot" and the last for "/home"). I followed some suggestions saying me that it is enough to change the uuid in the /etc/fstab file. This is not completely true because I did it but at the boot dracut gives an error because the initramfs devices reference are different from the actual one. So I think that I have to recreate the initramfs. The problem is that the cloning is done using a gentoo distribution. Could I create the initramfs for fedora using the chroot command?

drberta gravatar imagedrberta ( 2014-01-10 05:46:45 -0500 )edit