Note that, though procps itself is patched to ignore errors when writing to /proc/sys, the problem here is that the initscript causes the systemd-sysctl service to get triggered, and that does not fail gracefully:
ubuntu@procps:~$ sudo /lib/systemd/systemd-sysctl Couldn't write '1' to 'kernel/kptr_restrict', ignoring: Permission denied Couldn't write '4 4 1 7' to 'kernel/printk', ignoring: Permission denied Couldn't write '1' to 'kernel/yama/ptrace_scope', ignoring: Permission denied Couldn't write '32768' to 'vm/mmap_min_addr', ignoring: Permission denied Couldn't write '1' to 'fs/protected_hardlinks', ignoring: Permission denied Couldn't write '1' to 'fs/protected_symlinks', ignoring: Permission denied Couldn't write '176' to 'kernel/sysrq', ignoring: Permission denied ubuntu@procps:~$ echo $? 1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1637300 Title: procps upgrades fail in a LXD container To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/procps/+bug/1637300/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
