Skip to content

Commit af03f3d

Browse files
committed
fix: force detection of a binary for apt-get
apt-get "command -v" detection matches on opensuse and runs a script that fails to run with some of the option used bellow. Signed-off-by: replicajune <[email protected]>
1 parent 9207879 commit af03f3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cidata/cidata.TEMPLATE.d/boot/30-install-packages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if [ "${LIMA_CIDATA_UDP_DNS_LOCAL_PORT}" -ne 0 ] || [ "${LIMA_CIDATA_TCP_DNS_LOC
2323
fi
2424

2525
# Install minimum dependencies
26-
if command -v apt-get >/dev/null 2>&1; then
26+
if hexdump -C -n 4 "$(command -v apt-get)" | grep -qF 'ELF' >/dev/null 2>&1; then
2727
pkgs=""
2828
if [ "${LIMA_CIDATA_MOUNTTYPE}" = "reverse-sshfs" ]; then
2929
if [ "${LIMA_CIDATA_MOUNTS}" -gt 0 ] && ! command -v sshfs >/dev/null 2>&1; then

0 commit comments

Comments
 (0)