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

Johannes Meixner noreply at github.com
Mon Dec 20 13:25:53 CET 2021

  Branch: refs/heads/jsmeix-fix-modinfo_filename
  Home:   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.

More information about the rear-devel mailing list