amazonlinux / amazon-linux-2023

Amazon Linux 2023
https://aws.amazon.com/linux/amazon-linux-2023/
Other
527 stars 39 forks source link

[Bug] - Wrong kpatch command description #361

Closed jocel1 closed 1 year ago

jocel1 commented 1 year ago

Describe the bug When installing kpatch-dnf, it says:

2023-05-31T19:10:04+0000 INFO To enable automatic kpatch-patch subscription, run:
    $ dnf kpatch auto

This is not correct (kpatch package doesn't exist), and it should either make reference to the AWS documentation to install livepatch or list

dnf kernel-livepatch -y auto
dnf install -y kpatch-runtime
systemctl enable kpatch.service & systemctl start kpatch.service

To Reproduce Steps to reproduce the behavior: dnf install -y kpatch-dnf

sam-aws commented 1 year ago

Thanks for the report! We'll get this fixed up in the kpatch-dnf package.

q2ven commented 1 year ago

@jocel1

We fixed the instructions in kpatch-dnf-0.4-12.amzn2023.0.3. Thanks for reporting the issue :)

$ sudo dnf upgrade --releasever=2023.1.20230628 kpatch-dnf
...
Upgrading:
 kpatch-dnf                                              x86_64                                              0.4-12.amzn2023.0.3                                               amazonlinux                                               18 k
...
  Running scriptlet: kpatch-dnf-0.4-12.amzn2023.0.3.x86_64                                                                                                                                                                                1/2 
To enable automatic kpatch-patch subscription, run:
    $ sudo dnf install -y kpatch-runtime
    $ sudo dnf kernel-livepatch -y auto
    $ sudo systemctl enable kpatch.service && sudo systemctl start kpatch.service