[rear-devel] [rear/rear] cc19e2: Update bootloader-functions.sh

Johannes Meixner noreply at github.com
Thu Jul 29 14:50:04 CEST 2021


  Branch: refs/heads/master
  Home:   https://github.com/rear/rear
  Commit: cc19e2cce423631f5998cd2fc7b2f79e825e7a99
      https://github.com/rear/rear/commit/cc19e2cce423631f5998cd2fc7b2f79e825e7a99
  Author: Johannes Meixner <jsmeix at suse.com>
  Date:   2021-07-27 (Tue, 27 Jul 2021)

  Changed paths:
    M usr/share/rear/lib/bootloader-functions.sh

  Log Message:
  -----------
  Update bootloader-functions.sh

Better GRUB2 menue entry names and 'timeout 300' so the user
can read and understand the GRUB2 menue entry names
and cleanup of the get_root_disk_UUID function.


  Commit: 426c0dd89d4cbb28741f0cbe5a7b6206efda2772
      https://github.com/rear/rear/commit/426c0dd89d4cbb28741f0cbe5a7b6206efda2772
  Author: Johannes Meixner <jsmeix at suse.com>
  Date:   2021-07-27 (Tue, 27 Jul 2021)

  Changed paths:
    M usr/share/rear/output/ISO/Linux-i386/250_populate_efibootimg.sh

  Log Message:
  -----------
  Update 250_populate_efibootimg.sh

Call create_grub2_cfg with kernel and initrd arguments as
create_grub2_cfg /isolinux/kernel /isolinux/$REAR_INITRD_FILENAME


  Commit: e8393ac123c01c126d05b3f3e3c7a581125a000a
      https://github.com/rear/rear/commit/e8393ac123c01c126d05b3f3e3c7a581125a000a
  Author: Johannes Meixner <jsmeix at suse.com>
  Date:   2021-07-28 (Wed, 28 Jul 2021)

  Changed paths:
    M usr/share/rear/lib/bootloader-functions.sh

  Log Message:
  -----------
  Update bootloader-functions.sh

Overhauled function create_grub2_cfg:
Describe its usage in a comment.
Have its helper functions inside create_grub2_cfg to make them not globally accessible.
Initial steps to clean up how the GRUB the root device is set via one single method.
DebugPrint output how GRUB2 is configured to help the user to find errors or bugs.
Interruptible delay of 5 seconds before the GRUB2 menu replaces what there is on the screen
so that the user has a chance to see possible (error) messages on the screen.


  Commit: d055f90199aee51a0ab3602ba3088e3b4aa52ece
      https://github.com/rear/rear/commit/d055f90199aee51a0ab3602ba3088e3b4aa52ece
  Author: Johannes Meixner <jsmeix at suse.com>
  Date:   2021-07-28 (Wed, 28 Jul 2021)

  Changed paths:
    M usr/share/rear/lib/bootloader-functions.sh

  Log Message:
  -----------
  Update bootloader-functions.sh

Fixed backward compatible setting of grub2_set_root_command via GRUB2_SET_USB_ROOT


  Commit: 77a8d580dc0d2ee1b6d989678f8f6ba30e8501df
      https://github.com/rear/rear/commit/77a8d580dc0d2ee1b6d989678f8f6ba30e8501df
  Author: Johannes Meixner <jsmeix at suse.com>
  Date:   2021-07-28 (Wed, 28 Jul 2021)

  Changed paths:
    M usr/share/rear/lib/bootloader-functions.sh

  Log Message:
  -----------
  Update bootloader-functions.sh

Removed duplicate comment line


  Commit: 25f86d4f9cb320db637e65550830cb19a7fd2b02
      https://github.com/rear/rear/commit/25f86d4f9cb320db637e65550830cb19a7fd2b02
  Author: Johannes Meixner <jsmeix at suse.com>
  Date:   2021-07-29 (Thu, 29 Jul 2021)

  Changed paths:
    M usr/share/rear/lib/bootloader-functions.sh

  Log Message:
  -----------
  Update bootloader-functions.sh

Set GRUB2 timeout to new config variable GRUB2_TIMEOUT that is by default 300 seconds.
Set GRUB2 default boot menu entry to GRUB2_DEFAULT_BOOT that is by default 'chainloader'
which should usually boot the original system and reference GRUB2 boot menu entries
by 'menuentry ... --id=...' to have meaningful names instead of meaningless numbers.
Sleep 3 seconds exactly before GRUB2 shows its menu (it replaces what there is on the screen)
so that the user has a chance to see possible GRUB2 (error) messages on the screen.


  Commit: 9a0daaa66fd19ce53bde46e9067c27c22666e6fe
      https://github.com/rear/rear/commit/9a0daaa66fd19ce53bde46e9067c27c22666e6fe
  Author: Johannes Meixner <jsmeix at suse.com>
  Date:   2021-07-29 (Thu, 29 Jul 2021)

  Changed paths:
    M usr/share/rear/conf/default.conf

  Log Message:
  -----------
  Update default.conf

Update GRUB2_DEFAULT_BOOT in default.conf
and introduce new GRUB2_TIMEOUT which is
by default same as USER_INPUT_TIMEOUT
which is by default 300 seconds.


  Commit: 133a32e0e138e5be241115878fbb865bd13de1d3
      https://github.com/rear/rear/commit/133a32e0e138e5be241115878fbb865bd13de1d3
  Author: Johannes Meixner <jsmeix at suse.com>
  Date:   2021-07-29 (Thu, 29 Jul 2021)

  Changed paths:
    M usr/share/rear/lib/bootloader-functions.sh

  Log Message:
  -----------
  Update bootloader-functions.sh

https://www.gnu.org/software/grub/manual/grub/grub.html#search
shows "search [--file|--label|--fs-uuid] [--set [var]] [--no-floppy] name"
so I use "--set root --label REARBOOT" to use consistent syntax
instead of "--set=root --label REARBOOT" mixed syntax before
plus consistent 4 spaces indentation in GRUB2 menuentry output.


  Commit: 3e56fc8d03203ac2a2741ba8365f7d9789e04636
      https://github.com/rear/rear/commit/3e56fc8d03203ac2a2741ba8365f7d9789e04636
  Author: Johannes Meixner <jsmeix at suse.com>
  Date:   2021-07-29 (Thu, 29 Jul 2021)

  Changed paths:
    M usr/share/rear/conf/default.conf
    M usr/share/rear/lib/bootloader-functions.sh
    M usr/share/rear/output/ISO/Linux-i386/250_populate_efibootimg.sh

  Log Message:
  -----------
  Merge pull request #2662 from rear/jsmeix-grub2-config-cleanup

Cleanup of GRUB2 config code in particular for OUTPUT=USB:
Cleanup of the create_grub2_cfg function:
Describe its usage in a comment.
Have its helper functions inside create_grub2_cfg to make them not globally accessible.
Initial steps to clean up how the GRUB root device is set via one single method.
DebugPrint output how GRUB2 is configured to help the user to find errors or bugs.
Better GRUB2 menue entry names.
Consistent calling of the create_grub2_cfg function always as
create_grub2_cfg "/path/to/kernel" "/path/to/initrd" >/path/to/grub.cfg
also in output/ISO/Linux-i386/250_populate_efibootimg.sh.
Set GRUB2 timeout to new config variable GRUB2_TIMEOUT that is by default 300 seconds.
Set GRUB2 default boot menu entry to GRUB2_DEFAULT_BOOT that is by default 'chainloader'
which should usually boot the original system and reference GRUB2 boot menu entries
by 'menuentry ... --id=...' to have meaningful names instead of meaningless numbers.
Sleep 3 seconds exactly before GRUB2 shows its menu (it replaces what there is on the screen)
so that the user could see possible GRUB2 (error) messages on the screen.
Additionally cleanup of the get_root_disk_UUID function.


Compare: https://github.com/rear/rear/compare/339607cbbdd9...3e56fc8d0320


More information about the rear-devel mailing list