Skip to content

Commit 104c7c4

Browse files
committed
doc: explain why we need to check apt-get a bit differently than other package managers
Signed-off-by: replicajune <[email protected]>
1 parent af03f3d commit 104c7c4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ if [ "${LIMA_CIDATA_UDP_DNS_LOCAL_PORT}" -ne 0 ] || [ "${LIMA_CIDATA_TCP_DNS_LOC
2323
fi
2424

2525
# Install minimum dependencies
26+
# apt-get detected through the first bytes of apt-get binary to ensure we're
27+
# matching to an actual binary and not a wrapper script. This case is an issue
28+
# on OpenSuse which wraps its own package manager in to a script named apt-get
29+
# to mimic certain options but doesn't offer full parameters compatibility
30+
# See : https://github.com/lima-vm/lima/pull/1014
2631
if hexdump -C -n 4 "$(command -v apt-get)" | grep -qF 'ELF' >/dev/null 2>&1; then
2732
pkgs=""
2833
if [ "${LIMA_CIDATA_MOUNTTYPE}" = "reverse-sshfs" ]; then

0 commit comments

Comments
 (0)