Skip to content

Commit

Permalink
Merge pull request #7806 from bboozzoo/bboozzoo/drop-rpm-rewrite
Browse files Browse the repository at this point in the history
tests/lib/prepare: drop workarounds for rpmbuild rewriting /bin/sh
  • Loading branch information
mvo5 committed Nov 28, 2019
2 parents 4d1ed67 + 2fa0b1f commit 3654eb1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/lib/prepare.sh
Expand Up @@ -130,12 +130,6 @@ update_core_snap_for_classic_reexec() {
rm squashfs-root/usr/lib/snapd/* squashfs-root/usr/bin/snap
# and copy in the current libexec
cp -a "$LIBEXECDIR"/snapd/* squashfs-root/usr/lib/snapd/
case "$SPREAD_SYSTEM" in
fedora-*|centos-*|amazon-*)
# RPM can rewrite shebang to #!/usr/bin/sh
sed -i -e '1 s;#!/usr/bin/sh;#!/bin/sh;' squashfs-root/usr/lib/snapd/snap-device-helper
;;
esac
# also the binaries themselves
cp -a /usr/bin/snap squashfs-root/usr/bin/
# make sure bin/snapctl is a symlink to lib/
Expand Down

0 comments on commit 3654eb1

Please sign in to comment.