看板 DFBSD_bugs 關於我們 聯絡資訊
--0023547c8bf1bd163a0498b7a51d Content-Type: text/plain; charset=ISO-8859-1 Ah, of course! Thanks, Matt. Tim On Fri, Dec 31, 2010 at 9:39 AM, Matthew Dillon (via DragonFly issue tracker) <bugs@crater.dragonflybsd.org> wrote: > > Matthew Dillon <dillon@apollo.backplane.com> added the comment: > > :I ran into a weird issue while building an encrypted root filesystem. I > :used the script below to build the encrypted root. Right after this runs, > :"ls /mnt/usr" and "ls /mnt/var" show the expected files and directories. > : However, if I unmount root and remount it, I find that the contents of > /usr > :and /var have swapped. I can easily fix it by renaming /pfs/usr to > /pfs/var > :and vice versa. The script works fine on a non-encrypted root, so I'm > :wondering if it is somehow related to the mapper. I'm running 2.9.1.176. > > The issue is that you are cpdup'ing your current root onto the new > /mnt: > > :cpdup -o / /mnt > > And that is overwriting the PFS softlinks you created in /mnt/pfs. > > I've made similar mistakes myself every so often. > > -Matt > > ---------- > status: unread -> chatting > > _____________________________________________________ > DragonFly issue tracker <bugs@lists.dragonflybsd.org> > <http://bugs.dragonflybsd.org/issue1948> > _____________________________________________________ > --0023547c8bf1bd163a0498b7a51d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <font face=3D"tahoma,sans-serif">Ah, of course! =A0Thanks, Matt.<br clear= =3D"all"></font><div><br></div>Tim<br> <br><br><div class=3D"gmail_quote">On Fri, Dec 31, 2010 at 9:39 AM, Matthew= Dillon (via DragonFly issue tracker) <span dir=3D"ltr">&lt;<a href=3D"mail= > wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex;"><br> Matthew Dillon &lt;<a href=3D"mailto:dillon@apollo.backplane.com">dillon@ap= ollo.backplane.com</a>&gt; added the comment:<br> <br> :I ran into a weird issue while building an encrypted root filesystem. =A0I= <br> <div class=3D"im">:used the script below to build the encrypted root. =A0Ri= ght after this runs,<br> :&quot;ls /mnt/usr&quot; and &quot;ls /mnt/var&quot; show the expected file= s and directories.<br> : However, if I unmount root and remount it, I find that the contents of /u= sr<br> :and /var have swapped. =A0I can easily fix it by renaming /pfs/usr to /pfs= /var<br> :and vice versa. =A0The script works fine on a non-encrypted root, so I&#39= ;m<br> :wondering if it is somehow related to the mapper. =A0I&#39;m running 2.9.1= ..176.<br> <br> </div><div class=3D"im"> =A0 =A0The issue is that you are cpdup&#39;ing you= r current root onto the new<br> =A0 =A0/mnt:<br> <br> :cpdup -o / /mnt<br> <br> =A0 =A0And that is overwriting the PFS softlinks you created in /mnt/pfs.<= br> <br> =A0 =A0I&#39;ve made similar mistakes myself every so often.<br> <br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0-Matt<br> <br> </div>----------<br> status: unread -&gt; chatting<br> <br> _____________________________________________________<br> DragonFly issue tracker &lt;<a href=3D"mailto:bugs@lists.dragonflybsd.org">= bugs@lists.dragonflybsd.org</a>&gt;<br> &lt;<a href=3D"http://bugs.dragonflybsd.org/issue1948" target=3D"_blank">ht= tp://bugs.dragonflybsd.org/issue1948</a>&gt;<br> _____________________________________________________<br> </blockquote></div><br> --0023547c8bf1bd163a0498b7a51d--