README:add kpatch update operations
Signed-off-by: Zhipeng Xie <xiezhipeng1@huawei.com>
This commit is contained in:
parent
854a1bb6b2
commit
8bafa4cc91
10
README.md
10
README.md
@ -154,3 +154,13 @@ livepatch -d cmdline
|
||||
livepatch -r cmdline
|
||||
```
|
||||
|
||||
## 编译更新补丁工具
|
||||
|
||||
```bash
|
||||
yum install -y git rpm-build elfutils-libelf-devel uname-build-checks gdb-headless
|
||||
git clone https://gitee.com/src-openeuler/kpatch.git
|
||||
mkdir -p ~/rpmbuild/SOURCES/
|
||||
/bin/cp kpatch/* ~/rpmbuild/SOURCES/
|
||||
rpmbuild -ba kpatch/kpatch.spec
|
||||
rpm -Uvh ~/rpmbuild/RPMS/`arch`/kpatch*.rpm
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user