Skip to content

Commit df648fb

Browse files
authored
Revert apeinstall.sh binfmt flags (#1072)
The P flag breaks backwards compatibility with older binaries. The idea is to revert this commit after that break has been resolved.
1 parent 9a6af92 commit df648fb

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

ape/apeinstall.sh

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -137,20 +137,13 @@ if [ x"$(uname -s)" = xLinux ]; then
137137
echo done >&2
138138
fi
139139

140-
uname_r="$(uname -r)"
141-
if printf '%s\n%s\n' 5.12 "$uname_r" | sort -CV; then
142-
FLAGS=FP
143-
else
144-
FLAGS=F
145-
fi
146-
147140
echo >&2
148141
echo registering APE with binfmt_misc >&2
149142
echo you may need to edit configs to persist across reboot >&2
150-
echo '$SUDO sh -c "echo '"'"':APE:M::MZqFpD::/usr/bin/ape:'"$FLAGS'"' >/proc/sys/fs/binfmt_misc/register"' >&2
151-
$SUDO sh -c "echo ':APE:M::MZqFpD::/usr/bin/ape:$FLAGS' >/proc/sys/fs/binfmt_misc/register" || exit
152-
echo '$SUDO sh -c "echo '"'"':APE-jart:M::jartsr::/usr/bin/ape:'"$FLAGS'"' >/proc/sys/fs/binfmt_misc/register"' >&2
153-
$SUDO sh -c "echo ':APE-jart:M::jartsr::/usr/bin/ape:$FLAGS' >/proc/sys/fs/binfmt_misc/register" || exit
143+
echo '$SUDO sh -c "echo '"'"':APE:M::MZqFpD::/usr/bin/ape:'"'"' >/proc/sys/fs/binfmt_misc/register"' >&2
144+
$SUDO sh -c "echo ':APE:M::MZqFpD::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register" || exit
145+
echo '$SUDO sh -c "echo '"'"':APE-jart:M::jartsr::/usr/bin/ape:'"'"' >/proc/sys/fs/binfmt_misc/register"' >&2
146+
$SUDO sh -c "echo ':APE-jart:M::jartsr::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register" || exit
154147
echo done >&2
155148

156149
if [ x"$(cat /proc/sys/fs/binfmt_misc/status)" = xdisabled ]; then

0 commit comments

Comments
 (0)