File tree 1 file changed +11
-5
lines changed
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -224,13 +224,15 @@ ls -al
224
224
echo " Moving .deb packages to $_output_dir "
225
225
mv $_workdir /* .deb /output
226
226
227
- echo " Compressing linux source to $_output_dir "
228
- mv linux linux-source-${_kernel_version} -${_arg_kernel_localversion} +
229
- tar cJf \
230
- $_output_dir /linux-source-${_kernel_version} -${_arg_kernel_localversion} +.tar.xz \
231
- linux-source-${_kernel_version} -${_arg_kernel_localversion} +
227
+ echo " Compressing kernel source to $_output_dir "
228
+ make clean
229
+ mv $_workdir /linux $_workdir /linux-source-${_kernel_version} -${_arg_kernel_localversion} +
230
+ tar cjf \
231
+ $_output_dir /linux-source-${_kernel_version} -${_arg_kernel_localversion} +.tar.bz2 \
232
+ $_workdir /linux-source-${_kernel_version} -${_arg_kernel_localversion} +
232
233
233
234
235
+ echo " "
234
236
echo " SUCCESS The kernel has been successfully packaged."
235
237
echo " "
236
238
echo " INSTALL"
@@ -244,5 +246,9 @@ echo "sudo sh -c \"sed -i '$ s/$/ selinux=1 security=selinux/' /boot/cmdline.txt
244
246
echo " sudo touch /.autorelabel"
245
247
echo " sudo reboot"
246
248
echo " sestatus"
249
+ echo " "
250
+ echo " INSTALL SOURCE (OPTIONAL)"
251
+ echo " tar xjf linux-source-${_kernel_version} -${_arg_kernel_localversion} +.tar.bz2 --directory /usr/src/"
252
+ echo " ln -s linux-source-${_kernel_version} -${_arg_kernel_localversion} + /usr/src/linux"
247
253
248
254
# ] <-- needed because of Argbash
You can’t perform that action at this time.
0 commit comments