---------------------------------- How I built an aufs-patched kernel ---------------------------------- - get kernel source = got 5.4.26 (latest longterm atm) $ getlinux 5.4.26 -x - prepare kernel source = extract $ tar xf linux-5.4.26.tar.xz = actually, i got 5.4.25 like a day before 5.4.26 is release = got patch-5.4.25-26 and apply $ cd linux-5.4.25 $ patch -p1 < ~/temp/patch-5.4.25-26 = renamed the path as linux-5.4.26 - get the required aufsX = need aufs5 because i chose kernel v5 $ git clone git://github.com/sfjro/aufs5-standalone.git - prepare aufs5 $ git checkout -b aufs5.4 origin/aufs5.4 - get aufs-util (for later use) $ git clone git://git.code.sf.net/p/aufs/aufs-util - prepare aufs-util = aufs-util does not have exact kernel version (get closest lower) $ git checkout -b aufs-5.0 origin/aufs5.0 - apply patches in aufs5-standalone into linux = not all patches are required = refer to README in aufs5-standalone = i use method 1 $ cd linux-5.4.26 $ patch -p1 < ../aufs5-standalone/aufs5-kbuild.patch $ patch -p1 < ../aufs5-standalone/aufs5-base.patch $ patch -p1 < ../aufs5-standalone/aufs5-mmap.patch $ patch -p1 < ../aufs5-standalone/aufs5-standalone.patch = OR (in a single line command) $ for a in kbuild base mmap standalone ; do patch -p1 < ../aufs5-standalone/aufs5-$a.patch ; done - need to copy some files = still in linux-5.4.26 $ cp -av ../aufs5-standalone/Documentation/* Documentation/ $ cp -av ../aufs5-standalone/fs/* fs/ $ cp -av ../aufs5-standalone/include/uapi/linux/aufs_type.h include/uapi/linux/ - repack this for easy reuse = rename path as linux-5.4.26_aufs $ cd .. ; mv linux-5.4.26 linux-5.4.26_aufs $ cd linux-5.4.26_aufs $ packthis - prepare to build = unpack to /usr/src $ cd /usr/src ; tar xf linux-5.4.26_aufs.tar.xz - configure kernel $ cd linux-5.4.26_aufs = use make_kernel $ make_kernel -i -c = that will run make menuconfig = select aufs as module - build kernel = use make_kernel $ make_kernel -x = wait... - pack kernel (slackware) = use pack_kernel (duh!) $ pack_kernel --all = by default package will be at $HOME/temp