@@ -144,7 +144,7 @@ Make sure that the required packages are installed:
144
144
145
145
.. code :: sh
146
146
147
- sudo apt install build-essential autoconf automake libtool gawk alien fakeroot dkms libblkid-dev uuid-dev libudev-dev libssl-dev zlib1g-dev libaio-dev libattr1-dev libelf-dev linux-headers-generic python3 python3-dev python3-setuptools python3-cffi libffi-dev python3-packaging
147
+ sudo apt install build-essential autoconf automake libtool gawk alien fakeroot dkms libblkid-dev uuid-dev libudev-dev libssl-dev zlib1g-dev libaio-dev libattr1-dev libelf-dev linux-headers-generic python3 python3-dev python3-setuptools python3-cffi libffi-dev python3-packaging debhelper-compat dh-python po-debconf python3-all-dev python3-sphinx
148
148
149
149
`Get the source code <#get-the-source-code >`__.
150
150
@@ -161,19 +161,38 @@ headers, or you want to build against a different kernel, you must
161
161
specify the exact path with the *--with-linux * and *--with-linux-obj *
162
162
options.
163
163
164
+ To build RPM converted Debian packages:
165
+
164
166
.. code :: sh
165
167
166
168
$ cd zfs
167
169
$ ./configure --enable-systemd
168
170
$ make -j1 deb-utils deb-kmod
169
171
$ for file in * .deb; do sudo gdebi -q --non-interactive $file ; done
170
172
173
+ Starting from openzfs-2.2 release, native Debian packages can be built
174
+ as follows:
175
+
176
+ .. code :: sh
177
+
178
+ $ cd zfs
179
+ $ ./configure
180
+ $ make native-deb-utils native-deb-kmod
181
+ $ rm ../openzfs-zfs-dkms_* .deb
182
+ $ for file in ../* .deb; do sudo gdebi -q --non-interactive $file ; done
183
+
184
+ Native Debian packages build with pre-configured paths for Debian and
185
+ Ubuntu. It's best not to override the paths during configure.
186
+ ``KVERS ``, ``KSRC `` and ``KOBJ `` environment variables can be exported
187
+ to specify the kernel installed in non-default location.
188
+
171
189
.. _dkms-1 :
172
190
173
191
DKMS
174
192
~~~~
175
193
176
- Building deb-based DKMS and user packages can be done as follows:
194
+ Building RPM converted deb-based DKMS and user packages can be done as
195
+ follows:
177
196
178
197
.. code :: sh
179
198
@@ -183,6 +202,17 @@ Building deb-based DKMS and user packages can be done as follows:
183
202
$ make -j1 deb-utils deb-dkms
184
203
$ for file in * .deb; do sudo gdebi -q --non-interactive $file ; done
185
204
205
+ Starting from openzfs-2.2 release, native deb-based DKMS and user
206
+ packages can be built as follows:
207
+
208
+ .. code :: sh
209
+
210
+ $ sudo apt-get install dkms
211
+ $ cd zfs
212
+ $ ./configure
213
+ $ make native-deb-utils
214
+ $ for file in ../* .deb; do sudo gdebi -q --non-interactive $file ; done
215
+
186
216
Get the Source Code
187
217
-------------------
188
218
0 commit comments