... | ... | @@ -5,15 +5,15 @@ |
|
|
|
|
|
# Linux-specifix requirements
|
|
|
|
|
|
* ExFAT support
|
|
|
* [ExFAT](https://github.com/relan/exfat/) support
|
|
|
* [Storaged](http://storaged.org/) (`udisks2`)
|
|
|
* `disk` group (optional)
|
|
|
|
|
|
## Exfat Support
|
|
|
|
|
|
ExFAT Support is required in order to mount `/data` partition on the host. If your system does not support it, choose one of the following methods:
|
|
|
|
|
|
* __easiest__: [exfat-fuse](https://github.com/relan/exfat/) (`apt install exfat-fuse`)
|
|
|
* [exfat-nofuse](https://github.com/dorimanx/exfat-nofuse): compile and probe `exfat` filesystem support module for your kernel.
|
|
|
* `apt install exfat-fuse exfat-utils`
|
|
|
|
|
|
## Udisks2
|
|
|
|
... | ... | @@ -21,11 +21,11 @@ ExFAT Support is required in order to mount `/data` partition on the host. If yo |
|
|
|
|
|
### Udisks2 rules
|
|
|
|
|
|
When using pibox __outside a GUI session__, chances are that the default Polkit or PolicyKit (Polkit ancestor) rules would prevent you from setting-up and mounting loop devices.
|
|
|
When using kiwix-plug_installer __outside a GUI session__, chances are that the default Polkit or PolicyKit (Polkit ancestor) rules would prevent you from setting-up and mounting loop devices.
|
|
|
|
|
|
__Note__: Change the group or user to assign privileges to.
|
|
|
|
|
|
If using __Polkit__, edit `/etc/polkit-1/rules.d/10-udisks2.rules`
|
|
|
If using __Polkit__, edit `/etc/polkit-1/rules.d/10-udisks2.rules` and adjust who would be allowed to setup and mount loop devices (here, all users of the group `somegroup`).
|
|
|
|
|
|
```
|
|
|
polkit.addRule(function(action, subject) {
|
... | ... | @@ -39,7 +39,7 @@ polkit.addRule(function(action, subject) { |
|
|
});
|
|
|
```
|
|
|
|
|
|
If using __PolicyKit__ (Ubuntu), edit `/etc/polkit-1/localauthority/50-local.d/10-udisks.pkla`.
|
|
|
If using __PolicyKit__ (Ubuntu), edit `/etc/polkit-1/localauthority/50-local.d/10-udisks.pkla` and adjust who would be allowed to setup and mount loop devices (here, all users of the group `somegroup`).
|
|
|
|
|
|
```
|
|
|
[udisks2]
|
... | ... | @@ -47,4 +47,10 @@ If using __PolicyKit__ (Ubuntu), edit `/etc/polkit-1/localauthority/50-local.d/1 |
|
|
Identity=unix-user:myuser
|
|
|
Action=org.freedesktop.udisks2.filesystem-mount;org.freedesktop.udisks2.filesystem-mount-system;org.freedesktop.udisks2.loop-setup;org.freedesktop.udisks2.loop-delete-others
|
|
|
ResultAny=yes
|
|
|
``` |
|
|
\ No newline at end of file |
|
|
```
|
|
|
|
|
|
## `disk` group
|
|
|
|
|
|
On most distributions, loop devices are owned by `root:disk`.
|
|
|
|
|
|
By adding yourself to the `disk` group, you save yourself the trouble of elevating privileges to format the data partition. |
|
|
\ No newline at end of file |