[rear-devel] [rear/rear] bd8e32: Update 400_copy_modules.sh

Johannes Meixner noreply at github.com
Tue Dec 21 15:15:45 CET 2021


  Branch: refs/heads/master
  Home:   https://github.com/rear/rear
  Commit: bd8e32c06bf49a8630ade196be54193aa129d146
      https://github.com/rear/rear/commit/bd8e32c06bf49a8630ade196be54193aa129d146
  Author: Johannes Meixner <jsmeix at suse.com>
  Date:   2021-12-20 (Mon, 20 Dec 2021)

  Changed paths:
    M usr/share/rear/build/GNU/Linux/400_copy_modules.sh

  Log Message:
  -----------
  Update 400_copy_modules.sh

Fix function modinfo_filename:
Output the original module_filename also when it is a symlink
because in the code below 'cp -L' copies the symlink taget content
as a new regular file with file name as the name of the symlink
so the copied content can be still found under its original name,
cf. https://github.com/rear/rear/issues/2677#issuecomment-997859219
Additionally in case of MODULES=( 'all_modules' ) also use 'cp -L' to
copy the actual content to avoid dangling symlinks in the recovery system.


  Commit: e793faa0f3b2f4ed2626665f0bb8bbb0f39eb16e
      https://github.com/rear/rear/commit/e793faa0f3b2f4ed2626665f0bb8bbb0f39eb16e
  Author: Johannes Meixner <jsmeix at suse.com>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M usr/share/rear/build/GNU/Linux/400_copy_modules.sh

  Log Message:
  -----------
  Merge pull request #2731 from rear/jsmeix-fix-modinfo_filename

Fix modinfo_filename() in build/GNU/Linux/400_copy_modules.sh
Output the original $module_filename also when it is a symlink
because in the code below 'cp -L' copies the symlink taget content
as a new regular file with file name as the name of the symlink
so the copied content can be still found under its original name, cf.
https://github.com/rear/rear/issues/2677#issuecomment-997859219
Additionally in case of MODULES=( 'all_modules' ) also use 'cp -L' to
copy the actual content to avoid dangling symlinks in the recovery system.


Compare: https://github.com/rear/rear/compare/41ce2e13581c...e793faa0f3b2


More information about the rear-devel mailing list