[rear-devel] [rear/rear] d22751: Update 50_guess_bootloader.sh

Johannes Meixner jsmeix at suse.com
Thu Oct 20 14:18:59 CEST 2016


  Branch: refs/heads/jsmeix-only-last-LOADER_TYPE-matters_issue1038
  Home:   https://github.com/rear/rear
  Commit: d227515e0c9006855feca189bfd3ebba819c4a18
      https://github.com/rear/rear/commit/d227515e0c9006855feca189bfd3ebba819c4a18
  Author: Johannes Meixner <jsmeix at suse.com>
  Date:   2016-10-20 (Thu, 20 Oct 2016)

  Changed paths:
    M usr/share/rear/prep/default/50_guess_bootloader.sh

  Log Message:
  -----------
  Update 50_guess_bootloader.sh

Added 'tail -n1' to get onyl the last value if there are more than one
and because getting values from sysconfig files is like sourcing a shell script
it is the last setting that matters.

Cf.
http://stackoverflow.com/questions/2871930/how-to-retrieve-value-from-etc-sysconfig-in-python
that reads (excerpt):
  source /etc/sysconfig/FOO
  echo $MY_VALUE
and
http://ftp.novell.hu/pub/mirrors/ftp.novell.com/forge/library/SUSE%20Package%20Conventions/spc_sysconfig.html
that reads (excerpts):
  The configuration is easily readable by shell scripts
  The sysconfig files are plain text files.
  The setting is defined by pairs {VARIABLE,value} the following way,
  like shell variables:
  VARIABLE=”value”




More information about the rear-devel mailing list