[master 1/5] Add installer support for using a snapshot of root as root.

vpodzime installerbot-noreply at redhat.com
Thu Jun 25 09:54:11 UTC 2015


We should probably call ``xfs_admin -U generate`` on the snapshot of the root filesystem before mounting it. See e.g. http://www.miljan.org/main/2009/11/16/lvm-snapshots-and-xfs/ for more details. 

TL;DR XFS filesystems have UUIDs that are used in kernel for some mapping and thus two filesystems with the same UUID cannot be mounted at the same time. One of them needs to have the UUID changed (as suggested above) or mounts have to be done with ``-o nouuid``.

This code is not going to hit the issue because the origin is unmounted before the snapshot is mounted, but it could cause troubles later if somebody tries to mount the origin with the snapshot being already mounted (e.g. as root).

-- 
To view this comment on github, visit https://github.com/dwlehman/blivet/commit/86411b38eb3e2b625f1edb5254bca107b811fa4a#commitcomment-11857358


More information about the anaconda-patches mailing list