Tomas-M / linux-live

Linux Live Kit
http://www.linux-live.org/
1.01k stars 252 forks source link

aufs-kernel-compile-and-install script failure #215

Closed Littlebigone closed 1 year ago

Littlebigone commented 2 years ago

Hi, I am still working on the "ubuntu problem". I have installed ubuntu server 22.04 LTS in minimal mode. 'apt aufs-tools' report aufs-tools are not available so I have decide to compile and I have used your script tools/aufs-kernel-compile-and-install

  1. According to aufs5-standalone github, the config in tools/aufs-kernel-compile-and-install is set to: KERNELVERSION=5.15.0 CONFIG=/boot/config-5.15.0-30-* AUFS=aufs5-standalone CHECKOUT=origin/aufs5.15

Correct me if I'm wrong... ?

  1. download went fine but the script stops on errors when applying the patches. The firsts 5 patches reports having already been applied but not by me: aufs5-kbuild.patch aufs5-base.patch aufs5-mmap.patch aufs5-standalone.patch aufs5-loopback.patch

only vfs-ino.patch and tmpfs-idr.patch applies ok. So I have decided to comment the 5 patches aufs5-* and go on, but is it ok to do so ? or do you have a trick for this ?

  1. when the script continues there is another problem and the script stop when running make because of some scripts not allowed to run. To solve this problem, I have added just above 'make olddefconfig' the line:

chmod +x scripts/*.sh

and it runs for some hours at compiling...

  1. Then the script stops saying: ERROR: modpost: "update_time" [fs/aufs/aufs.ko] ubndefined! make[1]: *** [scripts/Makefile.modpost:134: modules-only.symvers] Error 1

Does anyones know how to solve this ? Thanks in advance

equetzal commented 2 years ago

Ok, so AUFS let me give you some context. AUFS used to be kernel module that you was only needing to compile and the kernel was able to load it without any problem, but since some time ago, due to changes on the Linux kernel, AUFS was not able to work anymore as a kernel module, so they had to integrate it with the Linux kernel itself. (This means, modify the kernel source code) Now, AUFS have 2 repos:

You can decide how to compile it, but follow the AUFS instructions for this and check that is a realease and not a working branch. Also, check that you GPG keys are valid.

About the AUFS-tools, they're a completely different software that talks the AUFS part of the kernel, this tools can help you with some operations on AUFS but Slax is not using them. In Debian (and ubuntu as well), AUFS used to be included in the kernel, and the AUFS-tools were available on the apt repos, but then skiped the support of AUFS (and so with the aufs-tools), so you won't be able to use AUFS by default anymore on that distros. If you want AUFS-tools you'll be needing to compile them after the kernel with AUFS support.