File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -224,13 +224,15 @@ ls -al
224224echo " Moving .deb packages to $_output_dir "
225225mv $_workdir /* .deb /output
226226
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} +
232233
233234
235+ echo " "
234236echo " SUCCESS The kernel has been successfully packaged."
235237echo " "
236238echo " INSTALL"
@@ -244,5 +246,9 @@ echo "sudo sh -c \"sed -i '$ s/$/ selinux=1 security=selinux/' /boot/cmdline.txt
244246echo " sudo touch /.autorelabel"
245247echo " sudo reboot"
246248echo " 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"
247253
248254# ] <-- needed because of Argbash
You can’t perform that action at this time.
0 commit comments