Skip to content

Commit

Permalink
docs: update the OpenAnolis kernel installation guide in fscache doc.
Browse files Browse the repository at this point in the history
OpenAnolis adds support for fscache mode since kernel version
4.19.91-27 or 5.10.134-12.

Fix: #1342

Signed-off-by: Qinqi Qu <[email protected]>
  • Loading branch information
adamqqqplay authored and jiangliu committed Jul 4, 2023
1 parent c1247fd commit 7d5cb1a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docs/nydus-fscache.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ This guide shows you how to use fscache-based EROFS nydus image service to launc

## Prepare the kernel

### (1) Compile kernel by yourself
Be aware of using the fscache-enabled EROFS kernel (Linux 5.19+), it can be built with the following steps:

1. ``git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git`` \
Expand All @@ -30,6 +31,33 @@ CONFIG_EROFS_FS_ONDEMAND=y

9. ``[ -c /dev/cachefiles ] && echo ok``

### (2) Use OpenAnolis kernel
If you want to use an existing kernel, you could use [OpenAnolis](https://openanolis.cn/download?lang=en), it adds support for fscache mode since kernel version 4.19.91-27 or 5.10.134-12.

Update the kernel to 4.19.91-27 on OpenAnolis 8 as an example:

```
$ sudo yum list --showduplicate kernel --enablerepo Plus
Installed Packages
kernel.x86_64 4.19.91-26.an8
Available Packages
kernel.x86_64 4.18.0-372.32.1.an8_6
kernel.x86_64 4.18.0-425.13.1.0.1.an8
kernel.x86_64 4.18.0-425.19.2.0.1.an8
kernel.x86_64 4.18.0-477.10.1.0.1.an8
kernel.x86_64 4.18.0-477.13.1.0.1.an8
kernel.x86_64 4.19.91-27.an8
kernel.x86_64 4.19.91-27.1.an8
kernel.x86_64 4.19.91-27.2.an8
kernel.x86_64 4.19.91-27.3.an8
kernel.x86_64 4.19.91-27.4.an8
$ sudo yum update kernel --enablerepo Plus
$ sudo reboot
```

## Get ctr-remote and the fscache-supported nydusd

1. Make sure you have installed _rust 1.52.1_ version and golang.
Expand Down

0 comments on commit 7d5cb1a

Please sign in to comment.