Commit aa9ec4cd authored by Marco d'Itri's avatar Marco d'Itri
Browse files

Check in preinst for the new system calls needed

We choose to not explicitly raise the required kernel version because
functional tests appear to be enough to validate real world kernels.
parent 9640b34d
......@@ -36,6 +36,10 @@ systemd (204-9) UNRELEASED; urgency=medium
also reads the hwdb info for USB devices (Closes: #717405) and gets rid of
some syntax errors (Closes: #706221)
[ Marco d'Itri ]
* preinst: check for all the system calls required by modern releases
of udev.
-- Michael Biebl <> Sat, 26 Apr 2014 10:41:18 +0200
systemd (204-8) unstable; urgency=low
......@@ -105,10 +105,10 @@ check_kernel_features() {
if [ -e /proc/kallsyms ]; then
local needed_symbols='sys_inotify_init sys_signalfd'
local needed_symbols='inotify_init signalfd open_by_handle_at timerfd_create epoll_create'
local missing_symbol=0
for symbol in $needed_symbols; do
if ! egrep -q "^[a-fA-F0-9]+ T \.?${symbol}$" /proc/kallsyms; then
if ! egrep -q "^[a-fA-F0-9]+ T \.?sys_${symbol}$" /proc/kallsyms; then
......@@ -133,11 +133,14 @@ check_kernel_features() {
if [ "$missing_symbol" -eq 1 ]; then
cat <<END
Since release 146, udev requires support for the following features in
Since release 198, udev requires support for the following features in
the running kernel:
- inotify(2) (CONFIG_INOTIFY_USER)
- signalfd(2) (CONFIG_SIGNALFD)
- inotify(2) (CONFIG_INOTIFY_USER)
- signalfd(2) (CONFIG_SIGNALFD)
- open_by_handle_at(2) (CONFIG_FHANDLE)
- timerfd_create(2) (CONFIG_TIMERFD)
- epoll_create(2) (CONFIG_EPOLL)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment