--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"><<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 <<a href=3D"mailto:dillon@apollo.backplane.com">dillon@ap=
ollo.backplane.com</a>> 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>
:"ls /mnt/usr" and "ls /mnt/var" 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'=
;m<br>
:wondering if it is somehow related to the mapper. =A0I'm running 2.9.1=
..176.<br>
<br>
</div><div class=3D"im"> =A0 =A0The issue is that you are cpdup'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'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 -> chatting<br>
<br>
_____________________________________________________<br>
DragonFly issue tracker <<a href=3D"mailto:bugs@lists.dragonflybsd.org">=
bugs@lists.dragonflybsd.org</a>><br>
<<a href=3D"http://bugs.dragonflybsd.org/issue1948" target=3D"_blank">ht=
tp://bugs.dragonflybsd.org/issue1948</a>><br>
_____________________________________________________<br>
</blockquote></div><br>
--0023547c8bf1bd163a0498b7a51d--