From ae7a29ebe684dce0bcc27c2b7b755a13f109f13c Mon Sep 17 00:00:00 2001 From: MCamp859 Date: Tue, 8 May 2018 11:30:59 -0400 Subject: [PATCH 1/3] Copy edit of multi-boot-restore-bl for branding, grammar, and format. No deferred feedback from PR 108. Signed-off-by: MCamp859 --- .../multi-boot/multi-boot-restore-bl.rst | 38 +++++++++++-------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/source/clear-linux/tutorials/multi-boot/multi-boot-restore-bl.rst b/source/clear-linux/tutorials/multi-boot/multi-boot-restore-bl.rst index 36a8231c..27f3c83b 100644 --- a/source/clear-linux/tutorials/multi-boot/multi-boot-restore-bl.rst +++ b/source/clear-linux/tutorials/multi-boot/multi-boot-restore-bl.rst @@ -1,11 +1,12 @@ .. _multi-boot-restore-bl: Restore the Clear Linux boot loader -*********************************** +################################### -The installation of a new operating system or an upgrade of an existing -operating system can result in making the |CL| Systemd-Boot no -longer the default boot loader. To restore it, follow the steps below. +This guide is part of the :ref:`multi-boot` tutorial. If you install a new +:abbr:`OS (operating system)` or upgrade an existing OS, the default boot +loader may change from |CL| Systemd-Boot. This guide describes how to restore +Systemd-Boot. #. Boot the |CL| installer from a USB thumb drive. See :ref:`bootable-usb`. @@ -14,43 +15,48 @@ longer the default boot loader. To restore it, follow the steps below. .. figure:: figures/multi-boot-restore-bl-1.png - Figure 1: |CL|: Console + Figure 1: |CL|: Console. -#. Log in as *root*. +#. Log in and get root privileges. + + .. code-block:: bash + + sudo -s .. note:: - Logging in for the first time as *root* through the console requires - setting a new password. + When you log in for the first time as *root* through the console, you must + set a new password. -#. Find the location of the |CL| EFI partition, in this example it is +#. Find the location of the |CL| EFI partition. In this example, it is :file:`/dev/sda3`. See Figure 2. - .. code-block:: console + .. code-block:: bash - # fdisk –l + # fdisk -l .. figure:: figures/multi-boot-restore-bl-2.png - Figure 2: |CL| - fdisk -l + Figure 2: |CL|: fdisk -l command. #. Mount the EFI partition. - .. code-block:: console + .. code-block:: bash # mount /dev/sda3 /mnt #. Re-install Systemd-Boot to make it the default boot loader. - .. code-block:: console + .. code-block:: bash # bootctl install --path /mnt #. Unmount the EFI partition. - .. code-block:: console + .. code-block:: bash # umount /mnt #. Reboot. -If you want to install other OSes, refer to :ref:`multi-boot` for details. +If you want to install other :abbr:`OSes (operating systems)`, refer to +:ref:`multi-boot` for details. From 65923ebcef09f03a9622da2f1c1780ae0c952f55 Mon Sep 17 00:00:00 2001 From: MCamp859 Date: Thu, 10 May 2018 11:17:19 -0400 Subject: [PATCH 2/3] Completed review feedback. Signed-off-by: MCamp859 --- .../tutorials/multi-boot/multi-boot-restore-bl.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/clear-linux/tutorials/multi-boot/multi-boot-restore-bl.rst b/source/clear-linux/tutorials/multi-boot/multi-boot-restore-bl.rst index 27f3c83b..079e14ce 100644 --- a/source/clear-linux/tutorials/multi-boot/multi-boot-restore-bl.rst +++ b/source/clear-linux/tutorials/multi-boot/multi-boot-restore-bl.rst @@ -17,7 +17,7 @@ Systemd-Boot. Figure 1: |CL|: Console. -#. Log in and get root privileges. +#. Log in as *root*. .. code-block:: bash @@ -32,7 +32,7 @@ Systemd-Boot. .. code-block:: bash - # fdisk -l + fdisk -l .. figure:: figures/multi-boot-restore-bl-2.png @@ -42,19 +42,19 @@ Systemd-Boot. .. code-block:: bash - # mount /dev/sda3 /mnt + mount /dev/sda3 /mnt #. Re-install Systemd-Boot to make it the default boot loader. .. code-block:: bash - # bootctl install --path /mnt + bootctl install --path /mnt #. Unmount the EFI partition. .. code-block:: bash - # umount /mnt + umount /mnt #. Reboot. From 0d68512d50216113d577b84b86ef555d48e99255 Mon Sep 17 00:00:00 2001 From: MCamp859 Date: Thu, 10 May 2018 13:14:41 -0400 Subject: [PATCH 3/3] Removed sudo -s per review feedback. Signed-off-by: MCamp859 --- .../tutorials/multi-boot/multi-boot-restore-bl.rst | 4 ---- 1 file changed, 4 deletions(-) diff --git a/source/clear-linux/tutorials/multi-boot/multi-boot-restore-bl.rst b/source/clear-linux/tutorials/multi-boot/multi-boot-restore-bl.rst index 079e14ce..88e307db 100644 --- a/source/clear-linux/tutorials/multi-boot/multi-boot-restore-bl.rst +++ b/source/clear-linux/tutorials/multi-boot/multi-boot-restore-bl.rst @@ -19,10 +19,6 @@ Systemd-Boot. #. Log in as *root*. - .. code-block:: bash - - sudo -s - .. note:: When you log in for the first time as *root* through the console, you must set a new password.