fix: Improve comments for case when lxd-installer package is not installed

Improve confusing comments for case when lxd-installer package is not installed.

This was worded confusingly
allwinner-kernel-jammy
Philip Roche 11 months ago
parent c09d4c1652
commit d97514cba0

@ -21,11 +21,11 @@ if [ -f "/usr/sbin/lxd" ]; then
# unminimize also uninstalls lxd-installer package # unminimize also uninstalls lxd-installer package
# and also removed `/usr/sbin/lxd` as a result so we don't need to restore # and also removed `/usr/sbin/lxd` as a result so we don't need to restore
else else
# if /usr/sbin/lxd doesn't exist when lxd-installer package isn't installed so we can mock the command # if /usr/sbin/lxd doesn't exist then lxd-installer package isn't installed.
# to avoid the unminimize script failing # Instead, we can mock the command to avoid the unminimize script failing
ln -s /bin/true /usr/sbin/lxd ln -s /bin/true /usr/sbin/lxd
yes | /usr/local/sbin/unminimize yes | /usr/local/sbin/unminimize
# as the lxd-installer package was not installed and thus not removed the mock # as the lxd-installer package was not installed and thus not removed by `unminimize`
# /usr/sbin/lxd will still be present so we need to remove it # the mock /usr/sbin/lxd will still be present, so we need to remove it
rm --verbose --force /usr/sbin/lxd rm --verbose --force /usr/sbin/lxd
fi fi
Loading…
Cancel
Save