Add steps for WSL1
This commit is contained in:
parent
50c2bd49e5
commit
c3afda1699
1 changed files with 20 additions and 0 deletions
|
@ -130,3 +130,23 @@ Seems like this would need Windows 10.
|
|||
|
||||
> > > > But here's a bug about sqlite in WSL:
|
||||
> > > > [[bugs/WSL_adjusted_braches__58___smudge_fails_with_sqlite_thread_crashed_-_locking_protocol]] --[[Joey]]
|
||||
|
||||
## Steps for using git-annex on NTFS with WSL1
|
||||
|
||||
These steps are tested on Windows 10 21h1 with Ubuntu 20 and are specifically designed to work around these two bugs:
|
||||
|
||||
* [[bugs/WSL_adjusted_braches__58___smudge_fails_with_sqlite_thread_crashed_-_locking_protocol]]
|
||||
* [[bugs/WSL1__58___git-annex-add_fails_in_DrvFs_filesystem]]
|
||||
|
||||
I put this line here so that the following lines do not become bullet points.
|
||||
|
||||
1. Enable Developer mode in Windows settings so that symlinks can be created without elevated privileges.
|
||||
2. Mount the NTFS drive with metadata option. This line can be added in `/etc/fstab`: `C: /mnt/c drvfs metadata`. I prefer to also add `uid=1000,gid=1000,fmask=0133,dmask=0022`.
|
||||
3. Create an empty directory where your repo will be. Then enable case sensitivity `setfattr -n system.wsl_case_sensitive -v 1 <path>`. This attribute will be automatically and recursively applied to any future subdirectories.
|
||||
4. Create the repo however you like. Immediately after `git annex init`, do `git config annex.crippledfilesystem true`. If you set `crippledfilesystem` before init, then git annex will try to enter an adjusted branch and trigger the first bug. If you do not set `crippledfilesystem` after init, you will trigger the second bug when doing `git annex add`.
|
||||
|
||||
### Using symlinks and locked files
|
||||
|
||||
* You can now use symlinks and locked files but please remember that locked files can still be overwritten. So make sure to unlock them before you edit them.
|
||||
* After you `git annex get` files, the symlinks for those files will still be broken. Recreate the symlinks to fix them. You can make a script or delete them and `git checkout`.
|
||||
* It can be difficult to use symlinks on Windows because programs will see the link target rather than the link, which makes it impossible to do things like navigating between files in the same directory or using opened file history. You can unlock the files or access them through another filesystem layer such as SMB.
|
||||
|
|
Loading…
Add table
Reference in a new issue