mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
minidlna: Make app installable inside unprivileged container
Use systemd-sysctl to reload sysctl configuration which ignores fs.inotify.max_user_watches parameter inside unprivileged container. Closes #1830 Tests performed: - Install minidlna using FreedomBox on KVM virtual machine. Installation succeeds and the max_user_watches parameter `cat /proc/sys/fs/inotify/max_user_watches` has changed. - Install minidlna using FreedomBox on unprivileged systemd-nspawn container. Installation succeeds (and the max_user_watches parameter hasn't changed). Signed-off-by: Veiko Aasa <veiko17@disroot.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
40ac492a87
commit
4d59713d79
@ -47,7 +47,7 @@ def subcommand_setup(arguments):
|
||||
aug.set('/files/etc/sysctl.conf/fs.inotify.max_user_watches', '100000')
|
||||
aug.save()
|
||||
|
||||
subprocess.run(['sysctl', '--system'], check=True)
|
||||
subprocess.run(['systemctl', 'restart', 'systemd-sysctl'], check=True)
|
||||
|
||||
|
||||
def subcommand_get_media_dir(arguments):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user