]> www.opopop.net Git - reminder/blob - Debian_Jessie_with_eudev_instead_of_udev_from_systemd.mdwn
(no commit message)
[reminder] / Debian_Jessie_with_eudev_instead_of_udev_from_systemd.mdwn
1 ## Introduction
2
3 At the end of that previous page [Avoid systemd on Debian Jessie with
4 Mate](http://www.opopop.net/Avoid_systemd_on_Debian_Jessie_with_Mate/),
5 I noticed that eliminating *systemd* won't be fully accomplished
6 without also using an alternative to *udev*.
7
8 I will show here that it is possible to use  [*eudev*](https://wiki.gentoo.org/wiki/Eudev)
9 to reach that goal. *eudev* has been packaged
10 for the latest Devuan distribution, see that
11 [announcement](https://dev1galaxy.org/viewtopic.php?id=1888). So it
12 should be easy to port that for straight Debian.
13
14 ## Modification to *eudev* source code
15
16 I started with source code version 3.2.5-1 from the latest Devuan. The
17 goal is to obtain a smooth upgrade from the *udev* and *libudev*
18 packages in Jessie (as it is what I am using). To ensure that, the new
19 packages will provide the old names.
20
21 My modifications were aimed at reducing the number of dependencies of the packages
22 and to correct the Devuanisms present in the installation/removal scripts.
23
24 For your convenience, all of the source files and the .deb packages
25 (for i386) are here:
26
27 [[eudev_3.2.5-1bu1.dsc]]
28
29 [[eudev_3.2.5.orig.tar.gz]]
30
31 [[eudev_3.2.5-1bu1.debian.tar.xz]]
32
33 [[eudev_3.2.5-1bu1_i386.changes]]
34
35 [[libeudev1_3.2.5-1bu1_i386.deb]]
36
37 [[eudev_3.2.5-1bu1_i386.deb]]
38
39 ## Building the *eudev* packages
40
41 If you have installed the needed development packages, it's easy to
42 rebuild files "libeudev1_3.2.5-1bu1_i386.deb" and
43 "eudev_3.2.5-1bu1_i386.deb" with these simple commands:
44
45     # the 3 source files have to be downloaded in your current working directory
46     dpkg-source -x eudev_3.2.5-1bu1.dsc
47     cd eudev-3.2.5
48     dpkg-buildpackage -rfakeroot
49     cd ..
50
51 Notice that .udev packages and a development package of libeudev1 are also
52 generated in the process.
53
54 ## Replacing *udev* by *eudev*
55
56 To install the two packages, you will need some local package repository. An easy
57 method to do it is to run:
58
59     mkdir -p ~/my-repo/dists/jessie/main/binary-i386
60     mv libeudev1_3.2.5-1bu1_i386.deb eudev_3.2.5-1bu1_i386.deb ~/my-repo/
61     dpkg-scanpackages ~/my-repo /dev/null | gzip > ~/my-repo/dists/jessie/main/binary-i386/Packages.gz
62
63 Notice that "dpkg-scanpackages" is available through package
64 *dpkg-dev*.
65
66 Then add line (if you are user "joe"):
67
68     deb file:/home/joe/my-repo/ jessie main 
69
70 to /etc/apt/sources.list and update the available packages in aptitude
71 to take the content of your local repository into account.
72
73 You can then try to upgrade to the new *eudev* and *libeudev* with
74 aptitude. You will get a conflict. Choose to solve it by suppressing
75 *udev* and *libudev*, proceed with the upgrade and you are done! There
76 will be some warnings during the installation because we are playing
77 hard with the package versioning system, but they are harmless.
78
79 ## Final remarks
80
81 It should be obvious, but the process above is intended for a Jessie
82 installation without systemd as the init process, as the one described 
83 [here](http://www.opopop.net/Avoid_systemd_on_Debian_Jessie_with_Mate/). 
84 Actually it has only be tested in that framework.
85
86 The only issue encountered was about firmare loading. The Jessie
87 kernel 3.16 handles radeon uvd in a way which makes me loose
88 resume/suspend. So I suppressed the needed firmware file. This
89 triggers a futile attempt (because the file is not there) at
90 user-space firmware loading. But with *eudev*, which lacks user-space
91 firmware loading, this leads to a 60s delay in the boot process.
92
93 I will not add user-space firmware loading to *eudev*, as it is
94 considered obsolete by the kernel people. Instead, you can either:
95
96 1. Reduce the 60s delay by inserting for instance before the 'udevadm settle' command in /etc/init.d/eudev:
97     echo 5 > /lib/class/firmware/timeout
98
99 2. Upgrade to a better radeon driver, for instance the one of kernel
100 4.9 from jessie-backport
101
102 I have finally chosen solution 2).