[Bug 778149] New: mkinitrd does not copy links correctly
https://bugzilla.novell.com/show_bug.cgi?id=778149 https://bugzilla.novell.com/show_bug.cgi?id=778149#c0 Summary: mkinitrd does not copy links correctly Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: x86-64 OS/Version: Linux Status: NEW Severity: Major Priority: P5 - None Component: Bootloader AssignedTo: jsrain@suse.com ReportedBy: ohering@suse.com QAContact: jsrain@suse.com Found By: Outsourced Testing Blocker: --- In Virtualization/libguestfs/libguestfs.spec I use mkinitrd to build the required "appliance". In 12.2 copying some binaries fails because there is also a symlink to the desired binary. This issue does not seem to exist in earliear releases, but maybe its just hidden because binaries have no symlinks? ... [ 440s] ++ for files in '$(sed -rn '\''s/^#[[:blank:]]*%programs:[[:blank:]]*(.*)$/\1/p'\'' < "$script")' [ 440s] +++ eval echo wipefs [ 440s] ++++ echo wipefs [ 440s] ++ for file in '$(eval echo $files)' [ 440s] ++ '[' wipefs = /lib/mkinitrd/bin ']' [ 440s] ++ '[' w = / ']' [ 440s] ++ case "$(type -t "$file")" in [ 440s] +++ type -t wipefs [ 440s] +++ type -p wipefs [ 440s] ++ SOURCE=/sbin/wipefs [ 440s] ++ DEST=./bin/ [ 440s] ++ cp_bin /sbin/wipefs ./bin/ [ 440s] ++ cp -a /sbin/wipefs ./bin/ [ 440s] ++ '[' -h /sbin/wipefs ']' [ 440s] ++ lnkTarget=/sbin/wipefs [ 440s] ++ targetPath=./bin/ [ 440s] ++ targetBase=./bin/ [ 440s] ++ '[' 1 ']' [ 440s] ++ cp_link /sbin/wipefs ./bin/ [ 440s] ++ '[' -h /sbin/wipefs ']' [ 440s] +++ readlink /sbin/wipefs [ 440s] ++ lnkTarget=/usr/sbin/wipefs [ 440s] ++ '[' -e /usr/sbin/wipefs ']' [ 440s] ++ cp -a /usr/sbin/wipefs ./bin///usr/sbin/wipefs [ 440s] cp: cannot create regular file './bin///usr/sbin/wipefs': No such file or directory [ 440s] ++ return 1 [ 440s] ++ lnkCopied=1 [ 440s] ++ '[' 1 = 0 ']' [ 440s] ++ '[' 1 ']' [ 440s] ++ cp_link /usr/sbin/wipefs ./bin/ [ 440s] ++ '[' -h /usr/sbin/wipefs ']' [ 440s] ++ return 0 [ 440s] ++ lnkCopied=0 [ 440s] ++ '[' 0 = 0 ']' [ 440s] ++ '[' -e /usr/sbin/wipefs ']' [ 440s] ++ initrd_bins[${#initrd_bins[@]}]=/usr/sbin/wipefs [ 440s] ++ break [ 440s] ++ '[' -L /sbin/wipefs ']' [ 440s] +++ readlink -e /sbin/wipefs [ 440s] ++ LINK=/usr/sbin/wipefs [ 440s] ++ '[' -e /usr/sbin/wipefs ']' [ 440s] +++ dirname /usr/sbin/wipefs [ 440s] ++ mkdir -p ./usr/sbin [ 440s] ++ cp_bin /usr/sbin/wipefs ./usr/sbin/wipefs [ 440s] ++ cp -a /usr/sbin/wipefs ./usr/sbin/wipefs [ 440s] ++ '[' -h /usr/sbin/wipefs ']' [ 440s] ++ '[' 2 -gt 1 ']' [ 440s] ++ initrd_bins[${#initrd_bins[@]}]=/usr/sbin/wipefs [ 440s] ++ shift [ 440s] ++ '[' 1 -gt 1 ']' [ 440s] ++ '[' -d ./usr/sbin/wipefs -o -f ./usr/sbin/wipefs ']' [ 440s] ++ find ./usr/sbin/wipefs -type f -print0 [ 440s] ++ xargs -0 chmod 0755 [ 440s] ++ for files in '$(sed -rn '\''s/^#[[:blank:]]*%programs:[[:blank:]]*(.*)$/\1/p'\'' < "$script")' .... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=778149 https://bugzilla.novell.com/show_bug.cgi?id=778149#c Jiri Srain <jsrain@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jsrain@suse.com |mmarek@suse.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=778149 https://bugzilla.novell.com/show_bug.cgi?id=778149#c1 --- Comment #1 from Olaf Hering <ohering@suse.com> 2012-08-31 14:52:12 CEST --- Great, even the SUSE:SLE-11:SP2 repo has the very same issue. grep for example is appearently not copied into the initrd because its a symlink. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=778149 https://bugzilla.novell.com/show_bug.cgi?id=778149#c Olaf Hering <ohering@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|mkinitrd does not copy |mkinitrd does not copy |links correctly |symlinks correctly -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=778149 https://bugzilla.novell.com/show_bug.cgi?id=778149#c2 --- Comment #2 from Olaf Hering <ohering@suse.com> 2012-09-28 23:48:25 CEST --- https://gitorious.org/opensuse/mkinitrd/merge_requests/14 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=778149 https://bugzilla.novell.com/show_bug.cgi?id=778149#c3 --- Comment #3 from Olaf Hering <ohering@suse.com> 2012-10-25 13:27:44 CEST --- ping? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=778149 https://bugzilla.novell.com/show_bug.cgi?id=778149#c4 Olaf Hering <ohering@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Olaf Hering <ohering@suse.com> 2012-11-08 11:00:43 CET --- merged in gitorious. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=778149 https://bugzilla.novell.com/show_bug.cgi?id=778149#c5 --- Comment #5 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-11-14 14:29:18 CET --- This is an autogenerated message for OBS integration: This bug (778149) was mentioned in https://build.opensuse.org/request/show/140738 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com