From 4d59713d79708a2ee3747b78299a24e53e6499de Mon Sep 17 00:00:00 2001 From: Veiko Aasa Date: Tue, 28 Apr 2020 16:16:45 +0300 Subject: [PATCH] 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 Reviewed-by: Sunil Mohan Adapa --- actions/minidlna | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/minidlna b/actions/minidlna index 9b8bc86d1..70f28d657 100755 --- a/actions/minidlna +++ b/actions/minidlna @@ -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):