DragonFly bugs List (threaded) for 2010-12
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: [issue1948] Hammer PFS weirdness when encrypting root
Ah, of course! Thanks, Matt.
Tim
On Fri, Dec 31, 2010 at 9:39 AM, Matthew Dillon (via DragonFly issue tracker)
<
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>
_____________________________________________________
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]