Gentoo Archives: gentoo-user

From: Sebastian Pipping <sping@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Initramfs or move /usr to /, oh my...
Date: Wed, 21 Mar 2012 07:43:41
Message-Id: 4F6985FC.5050401@gentoo.org
In Reply to: Re: [gentoo-user] Initramfs or move /usr to /, oh my... by Joshua Murphy
1 On 03/21/2012 03:02 AM, Joshua Murphy wrote:
2 > 1) make backups and... 1.a) verify backups... consider this my disclaimer...
3 > 2) mkdir /mnt/root-bind/ /mnt/usr-bind/
4 > 3) mount --bind / /mnt/root-bind/
5 > 4) mount --bind /usr/ /mnt/usr-bind/
6 > 5) rsync --archive --hard-links --sparse --progress /mnt/usr-bind/
7 > /mnt/root-bind/usr/
8
9 At first it looked like you were copying things onto themselves. Then I
10 noticed I was wrongly assuming --rbind mount operation rather than the
11 actual plain --bind that you use. Nice approach!
12
13 Best,
14
15
16
17 Sebastian