Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested mount support #67

Merged
merged 30 commits into from
Jun 29, 2023
Merged
Changes from 3 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
cab88e2
Allow for nested mount by using mergerfs
Jun 25, 2023
4e2a113
Remove debug bash
ezrizhu Jun 25, 2023
73b9b51
Remove debug echo
ezrizhu Jun 25, 2023
092a460
mount /run with merger aswell
ezrizhu Jun 25, 2023
b95f2e4
refactor and use overlayfs via mergerfs if regular overlayfs fails
ezrizhu Jun 26, 2023
1a4ba00
Only mount /dev/{tty null zero full random urandom}
ezrizhu Jun 26, 2023
83f8e5d
improve docs, refactor from top_dir to mountpoint
ezrizhu Jun 26, 2023
6b46967
Fix mergerfs failing not showing mount log path
ezrizhu Jun 27, 2023
9c929fe
Add support for unionfs, allow user to specify unionfs helper path
ezrizhu Jun 27, 2023
74d0894
Write mountpoint on unionhelper not found message
ezrizhu Jun 27, 2023
db5539f
Merge branch 'main' into nested-mount
ezrizhu Jun 27, 2023
f2cb092
exit if findmnt not installed
ezrizhu Jun 27, 2023
4f3b766
nested mount docs
ezrizhu Jun 27, 2023
ed98863
add newlines to readme
ezrizhu Jun 27, 2023
a8427e2
grammar fix
ezrizhu Jun 27, 2023
38a34b5
Add -U option description to manpages
gliargovas Jun 28, 2023
1a29602
Add shell completion for -U option
gliargovas Jun 28, 2023
29d47f3
Change -U flag autocompletion to only suggest executables
gliargovas Jun 28, 2023
c216d0e
Install mergerfs in ci
ezrizhu Jun 28, 2023
68e5965
Try reading from /run directory before testing
gliargovas Jun 29, 2023
e69c535
Merge remote-tracking branch 'origin/main' into nested-mount
angelhof Jun 29, 2023
7d661e9
refactor
angelhof Jun 29, 2023
45f8e0b
Refactor
angelhof Jun 29, 2023
a71f715
more refactoring
angelhof Jun 29, 2023
2f5d40f
Refactor some more and unmount devices for tests to pass
angelhof Jun 29, 2023
7de1645
Add a device test
angelhof Jun 29, 2023
2fcfb17
copyedit
mgree Jun 29, 2023
57b9b8c
copyedit
mgree Jun 29, 2023
36a7b6c
Some comments and redirect a test to /dev/null
angelhof Jun 29, 2023
77f60f7
Merge branch 'nested-mount' of github.com:binpash/try into nested-mount
angelhof Jun 29, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -25,12 +25,12 @@ disks.

### Dependencies

Try relies on the following dependencies
`try` relies on the following dependencies

`util-linux`
* `util-linux`

In cases where overlayfs doesn't work on nested mounts, you will need either
[mergerfs](https://github.com/trapexit/mergerfs) or [unionfs](https://github.com/rpodgorny/unionfs-fuse). Try should be able to autodetect them, but you can specify the path to mergerfs or unionfs with -U (e.g. `try -U ~/.local/bin/unionfs`)
[mergerfs](https://github.com/trapexit/mergerfs) or [unionfs](https://github.com/rpodgorny/unionfs-fuse). `try` should be able to autodetect them, but you can specify the path to mergerfs or unionfs with -U (e.g. `try -U ~/.local/bin/unionfs`)

Has been tested on the following distributions:
* `Ubuntu 20.04 LTS` or later
@@ -51,7 +51,7 @@ $ git clone https://github.com/binpash/try.git

#### Arch Linux

`Try` is present in [AUR](https://aur.archlinux.org/packages/try), you can install it with your preferred AUR helper:
`try` is present in [AUR](https://aur.archlinux.org/packages/try), you can install it with your preferred AUR helper:

```shellsession
yay -S try
1 change: 1 addition & 0 deletions docs/try.1.md
Original file line number Diff line number Diff line change
@@ -48,6 +48,7 @@ While using *try* you can choose to commit the result to the filesystem or compl

: Use the unionfs helper implementation defined in the *PATH* (e.g., mergerfs, unionfs-fuse) instead of the default.
This option is recommended in case OverlayFS fails.

## Subcommands

try summary *DIR*