Skip to contentSkip to conversation

kexec: update manpage with explicit mention of clean kexec

PATCH Superseded Hari Bathini 3 participants 8 messages Jul 7, 2023 – Sep 20, 2023

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kexec: update manpage with explicit mention of clean kexec

While the manpage does mention about kexec boot with a clean shutdown, it is not explicit about it. Make it explicit.

---
 kexec/kexec.8 | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
kexec/kexec.8 +10 -2
index 3a344c5..87e4ab5 100644
@@ -95,8 +95,16 @@ then you would use the following command to load the kernel:
 .RB "\-\-append=" "root=/dev/hda1" "\ \-\-initrd=" /boot/initrd
 .RE
 .PP
-After this kernel is loaded, it can be booted to at any time using the
-command:
+After this kernel is loaded, assuming your Linux distribution supports
+kexec-based rebooting, it can be booted to, with a clean shutdown, using
+the command:
+
+.RS
+.BR reboot
+.RE
+.PP
+Alternatively, it can also be booted to, without calling shutdown(8), with
+the command:
 
 .RS
 .BR kexec \ \-e
Signature · 7 lines
2.41.0


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
#1 lore raw

Any comments on this, please..

Quoted 21 lines · Hari Bathini

While the manpage does mention about kexec boot with a clean shutdown, it is not explicit about it. Make it explicit.

---
  kexec/kexec.8 | 12 ++++++++++--
  1 file changed, 10 insertions(+), 2 deletions(-)
kexec/kexec.8 +3 -2
index 3a344c5..87e4ab5 100644
@@ -95,8 +95,16 @@ then you would use the following command to load the kernel:
  .RB "\-\-append=" "root=/dev/hda1" "\ \-\-initrd=" /boot/initrd
  .RE
  .PP
-After this kernel is loaded, it can be booted to at any time using the
-command:
+After this kernel is loaded, assuming your Linux distribution supports
+kexec-based rebooting, it can be booted to, with a clean shutdown, using
+the command:

kexec/kexec.8 then you would use the following command to load the kernel: · line 110

Quoted 10 lines
kexec/kexec.8 +7 -0
+
+.RS
+.BR reboot
+.RE
+.PP
+Alternatively, it can also be booted to, without calling shutdown(8), with
+the command:
 
  .RS
  .BR kexec \ \-e

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#2 lore raw
Quoted 1 line · Hari Bathini

Any comments on this, please..

Hi Hari,

Sorry, I had missed this.

Quoted 9 lines · Hari Bathini
Quoted 8 lines

While the manpage does mention about kexec boot with a clean shutdown, it is not explicit about it. Make it explicit.

---
  kexec/kexec.8 | 12 ++++++++++--
  1 file changed, 10 insertions(+), 2 deletions(-)
Quoted 13 lines

kexec/kexec.8 then you would use the following command to load the kernel: · line 100

Quoted 13 lines
kexec/kexec.8 +3 -2
index 3a344c5..87e4ab5 100644
@@ -95,8 +95,16 @@ then you would use the following command to load the kernel:
  .RB "\-\-append=" "root=/dev/hda1" "\ \-\-initrd=" /boot/initrd
  .RE
  .PP
-After this kernel is loaded, it can be booted to at any time using the
-command:
+After this kernel is loaded, assuming your Linux distribution supports
+kexec-based rebooting, it can be booted to, with a clean shutdown, using
+the command:

Perhaps user-space would be better than "your Linux distribution". But perhaps that is just kernel developer speak and makes less sense to others.

Quoted 11 lines

kexec/kexec.8 then you would use the following command to load the kernel: · line 110

Quoted 10 lines
kexec/kexec.8 +7 -0
+
+.RS
+.BR reboot
+.RE
+.PP
+Alternatively, it can also be booted to, without calling shutdown(8), with
+the command:
 
  .RS
  .BR kexec \ \-e

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#3 lore raw
Quoted 25 lines · Simon Horman
Quoted 1 line · Hari Bathini

Any comments on this, please..

Hi Hari,

Sorry, I had missed this.

Quoted 18 lines · Hari Bathini
Quoted 17 lines

While the manpage does mention about kexec boot with a clean shutdown, it is not explicit about it. Make it explicit.

---
  kexec/kexec.8 | 12 ++++++++++--
  1 file changed, 10 insertions(+), 2 deletions(-)
kexec/kexec.8 +0 -1
index 3a344c5..87e4ab5 100644
@@ -95,8 +95,16 @@ then you would use the following command to load the kernel:
  .RB "\-\-append=" "root=/dev/hda1" "\ \-\-initrd=" /boot/initrd
  .RE
  .PP
-After this kernel is loaded, it can be booted to at any time using the
Quoted 8 lines
Quoted 4 lines

kexec/kexec.8 then you would use the following command to load the kernel: · line 100

Quoted 4 lines
kexec/kexec.8 +3 -1
-command:
+After this kernel is loaded, assuming your Linux distribution supports
+kexec-based rebooting, it can be booted to, with a clean shutdown, using
+the command:

Perhaps user-space would be better than "your Linux distribution". But perhaps that is just kernel developer speak and makes less sense to others.

Agree, linux distrobution doesn't make sense here. And since this is a kexec man page, does it really need to make this change? We know kexec-tools loaded a kernel, we will use kexec-tools to trigger the reboot. Wondering why we need to stress distros or kernel or kexec-tools supports the kexec-based rebooting. 'with a clean shutdown' seems a little helpful though.

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
kexec/kexec.8 +7 -0
+
+.RS
+.BR reboot
+.RE
+.PP
+Alternatively, it can also be booted to, without calling shutdown(8), with
+the command:
 
Quoted 9 lines
Quoted 3 lines

kexec/kexec.8 then you would use the following command to load the kernel: · line 110

Quoted 2 lines
kexec/kexec.8 +0 -0
  .RS
  .BR kexec \ \-e

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#7 lore raw
In reply to Simon Horman
Quoted 6 lines · Simon Horman
Quoted 1 line · Hari Bathini

Any comments on this, please..

Hi Hari,

Sorry, I had missed this.

No worries. Thanks for the response.

Quoted 19 lines
Quoted 19 lines · Hari Bathini
Quoted 17 lines

While the manpage does mention about kexec boot with a clean shutdown, it is not explicit about it. Make it explicit.

---
   kexec/kexec.8 | 12 ++++++++++--
   1 file changed, 10 insertions(+), 2 deletions(-)
kexec/kexec.8 +0 -1
index 3a344c5..87e4ab5 100644
@@ -95,8 +95,16 @@ then you would use the following command to load the kernel:
   .RB "\-\-append=" "root=/dev/hda1" "\ \-\-initrd=" /boot/initrd
   .RE
   .PP
-After this kernel is loaded, it can be booted to at any time using the
Quoted 8 lines
Quoted 4 lines

kexec/kexec.8 then you would use the following command to load the kernel: · line 100

Quoted 4 lines
kexec/kexec.8 +3 -1
-command:
+After this kernel is loaded, assuming your Linux distribution supports
+kexec-based rebooting, it can be booted to, with a clean shutdown, using
+the command:

Perhaps user-space would be better than "your Linux distribution". But perhaps that is just kernel developer speak and makes less sense to others.

No strong inclination to putting it either way. Would leave it to you :)

- Hari

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#4 lore raw
In reply to Baoquan He
Quoted 35 lines · Baoquan He
Quoted 25 lines · Simon Horman
Quoted 1 line · Hari Bathini

Any comments on this, please..

Hi Hari,

Sorry, I had missed this.

Quoted 18 lines · Hari Bathini
Quoted 17 lines

While the manpage does mention about kexec boot with a clean shutdown, it is not explicit about it. Make it explicit.

---
   kexec/kexec.8 | 12 ++++++++++--
   1 file changed, 10 insertions(+), 2 deletions(-)
kexec/kexec.8 +0 -1
index 3a344c5..87e4ab5 100644
@@ -95,8 +95,16 @@ then you would use the following command to load the kernel:
   .RB "\-\-append=" "root=/dev/hda1" "\ \-\-initrd=" /boot/initrd
   .RE
   .PP
-After this kernel is loaded, it can be booted to at any time using the
Quoted 8 lines
Quoted 4 lines

kexec/kexec.8 then you would use the following command to load the kernel: · line 100

Quoted 4 lines
kexec/kexec.8 +3 -1
-command:
+After this kernel is loaded, assuming your Linux distribution supports
+kexec-based rebooting, it can be booted to, with a clean shutdown, using
+the command:

Perhaps user-space would be better than "your Linux distribution". But perhaps that is just kernel developer speak and makes less sense to others.

Quoted 6 lines

Agree, linux distrobution doesn't make sense here. And since this is a kexec man page, does it really need to make this change? We know kexec-tools loaded a kernel, we will use kexec-tools to trigger the reboot. Wondering why we need to stress distros or kernel or kexec-tools supports the kexec-based rebooting. 'with a clean shutdown' seems a little helpful though.

Yeah. Users did express that lack of clarity on what is the cleaner approach to use kexec boot after load. That prompted this patch. I am ok with "user-space" or "your linux distribution".

Simon, do you want to respin with "user-space" change instead?

Thanks
Hari

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#5 lore raw
Quoted 45 lines · Hari Bathini
Quoted 35 lines · Baoquan He
Quoted 25 lines · Simon Horman
Quoted 1 line · Hari Bathini

Any comments on this, please..

Hi Hari,

Sorry, I had missed this.

Quoted 18 lines · Hari Bathini
Quoted 17 lines

While the manpage does mention about kexec boot with a clean shutdown, it is not explicit about it. Make it explicit.

---
   kexec/kexec.8 | 12 ++++++++++--
   1 file changed, 10 insertions(+), 2 deletions(-)
kexec/kexec.8 +0 -1
index 3a344c5..87e4ab5 100644
@@ -95,8 +95,16 @@ then you would use the following command to load the kernel:
   .RB "\-\-append=" "root=/dev/hda1" "\ \-\-initrd=" /boot/initrd
   .RE
   .PP
-After this kernel is loaded, it can be booted to at any time using the
Quoted 8 lines
Quoted 4 lines

kexec/kexec.8 then you would use the following command to load the kernel: · line 100

Quoted 4 lines
kexec/kexec.8 +3 -1
-command:
+After this kernel is loaded, assuming your Linux distribution supports
+kexec-based rebooting, it can be booted to, with a clean shutdown, using
+the command:

Perhaps user-space would be better than "your Linux distribution". But perhaps that is just kernel developer speak and makes less sense to others.

Quoted 6 lines

Agree, linux distrobution doesn't make sense here. And since this is a kexec man page, does it really need to make this change? We know kexec-tools loaded a kernel, we will use kexec-tools to trigger the reboot. Wondering why we need to stress distros or kernel or kexec-tools supports the kexec-based rebooting. 'with a clean shutdown' seems a little helpful though.

Quoted 5 lines

Yeah. Users did express that lack of clarity on what is the cleaner approach to use kexec boot after load. That prompted this patch. I am ok with "user-space" or "your linux distribution".

Simon, do you want to respin with "user-space" change instead?

Yes, I think that would be best.

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#6 lore raw
Quoted 46 lines · Simon Horman
Quoted 45 lines · Hari Bathini
Quoted 41 lines · Baoquan He
Quoted 25 lines · Simon Horman
Quoted 1 line · Hari Bathini

Any comments on this, please..

Hi Hari,

Sorry, I had missed this.

Quoted 18 lines · Hari Bathini
Quoted 17 lines

While the manpage does mention about kexec boot with a clean shutdown, it is not explicit about it. Make it explicit.

---
    kexec/kexec.8 | 12 ++++++++++--
    1 file changed, 10 insertions(+), 2 deletions(-)
kexec/kexec.8 +0 -1
index 3a344c5..87e4ab5 100644
@@ -95,8 +95,16 @@ then you would use the following command to load the kernel:
    .RB "\-\-append=" "root=/dev/hda1" "\ \-\-initrd=" /boot/initrd
    .RE
    .PP
-After this kernel is loaded, it can be booted to at any time using the
Quoted 8 lines
Quoted 4 lines

kexec/kexec.8 then you would use the following command to load the kernel: · line 100

Quoted 4 lines
kexec/kexec.8 +3 -1
-command:
+After this kernel is loaded, assuming your Linux distribution supports
+kexec-based rebooting, it can be booted to, with a clean shutdown, using
+the command:

Perhaps user-space would be better than "your Linux distribution". But perhaps that is just kernel developer speak and makes less sense to others.

Agree, linux distrobution doesn't make sense here. And since this is a kexec man page, does it really need to make this change? We know kexec-tools loaded a kernel, we will use kexec-tools to trigger the reboot. Wondering why we need to stress distros or kernel or kexec-tools supports the kexec-based rebooting. 'with a clean shutdown' seems a little helpful though.

Quoted 7 lines
Quoted 5 lines

Yeah. Users did express that lack of clarity on what is the cleaner approach to use kexec boot after load. That prompted this patch. I am ok with "user-space" or "your linux distribution".

Simon, do you want to respin with "user-space" change instead?

Yes, I think that would be best.

Sure, Simon.
Sent v2.

Thanks
Hari

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec