Skip to content

Commit 6a52a2f

Browse files
authored
Merge pull request #3913 from norio-nomura/fix-unregister-rosetta
`05-rosetta-volume.sh`: fix unregister rosetta
2 parents 6aceec3 + 7dbf515 commit 6a52a2f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/cidata/cidata.TEMPLATE.d/boot/05-rosetta-volume.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if [ "$LIMA_CIDATA_ROSETTA_BINFMT" = "true" ]; then
2727
[ ! -d "$(dirname "$binfmtd_conf")" ] || [ -f "$binfmtd_conf" ] || echo "$rosetta_binfmt" >"$binfmtd_conf"
2828
else
2929
# unregister rosetta from binfmt_misc if it exists
30-
[ ! -f "$binfmt_entry" ] || echo -1 | "$binfmt_entry"
30+
[ ! -f "$binfmt_entry" ] || echo -1 >"$binfmt_entry"
3131
# remove binfmt.d(5) configuration if it exists
3232
[ ! -f "$binfmtd_conf" ] || rm "$binfmtd_conf"
3333
fi

pkg/driver/vz/boot/05-rosetta-volume.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if [ "$LIMA_CIDATA_ROSETTA_BINFMT" = "true" ]; then
2727
[ ! -d "$(dirname "$binfmtd_conf")" ] || [ -f "$binfmtd_conf" ] || echo "$rosetta_binfmt" >"$binfmtd_conf"
2828
else
2929
# unregister rosetta from binfmt_misc if it exists
30-
[ ! -f "$binfmt_entry" ] || echo -1 | "$binfmt_entry"
30+
[ ! -f "$binfmt_entry" ] || echo -1 >"$binfmt_entry"
3131
# remove binfmt.d(5) configuration if it exists
3232
[ ! -f "$binfmtd_conf" ] || rm "$binfmtd_conf"
3333
fi

0 commit comments

Comments
 (0)