File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
pkg/cidata/cidata.TEMPLATE.d/boot Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 2
2
set -eux
3
3
4
4
# This script does not work unless systemd is available
5
- command -v systemctl 2>&1 > /dev/null || exit 0
5
+ command -v systemctl > /dev/null 2>&1 || exit 0
6
6
7
7
# Set up env
8
8
for f in .profile .bashrc; do
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ update_fuse_conf(){
11
11
}
12
12
13
13
# Install minimum dependencies
14
- if command -v apt-get 2>&1 > /dev/null; then
14
+ if command -v apt-get > /dev/null 2>&1 ; then
15
15
DEBIAN_FRONTEND=noninteractive
16
16
export DEBIAN_FRONTEND
17
17
apt-get update
@@ -25,7 +25,7 @@ if command -v apt-get 2>&1 >/dev/null; then
25
25
if [ " ${LIMA_CIDATA_CONTAINERD_USER} " = 1 ]; then
26
26
apt-get install -y uidmap fuse3 dbus-user-session
27
27
fi
28
- elif command -v dnf 2>&1 > /dev/null; then
28
+ elif command -v dnf > /dev/null 2>&1 ; then
29
29
if [ " ${LIMA_CIDATA_MOUNTS} " -gt 0 ]; then
30
30
dnf install -y fuse-sshfs
31
31
update_fuse_conf
@@ -40,9 +40,9 @@ elif command -v dnf 2>&1 >/dev/null; then
40
40
ln -s fusermount3 /usr/bin/fusermount
41
41
fi
42
42
fi
43
- elif command -v apk 2>&1 > /dev/null; then
43
+ elif command -v apk > /dev/null 2>&1 ; then
44
44
if [ " ${LIMA_CIDATA_MOUNTS} " -gt 0 ]; then
45
- if ! command -v sshfs 2>&1 > /dev/null; then
45
+ if ! command -v sshfs > /dev/null 2>&1 ; then
46
46
apk update
47
47
apk add sshfs
48
48
fi
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ if [ "${LIMA_CIDATA_CONTAINERD_SYSTEM}" != 1 ] && [ "${LIMA_CIDATA_CONTAINERD_US
7
7
fi
8
8
9
9
# This script does not work unless systemd is available
10
- command -v systemctl 2>&1 > /dev/null || exit 0
10
+ command -v systemctl > /dev/null 2>&1 || exit 0
11
11
12
12
if [ ! -x /usr/local/bin/nerdctl ]; then
13
13
tar Cxzf /usr/local " ${LIMA_CIDATA_MNT} " /nerdctl-full.tgz
42
42
chown -R " ${LIMA_CIDATA_USER} " " /home/${LIMA_CIDATA_USER} .linux/.config"
43
43
fi
44
44
selinux=
45
- if command -v selinuxenabled 2>&1 > /dev/null && selinuxenabled; then
45
+ if command -v selinuxenabled > /dev/null 2>&1 && selinuxenabled; then
46
46
selinux=1
47
47
fi
48
48
if [ ! -e " /home/${LIMA_CIDATA_USER} }}.linux/.config/systemd/user/containerd.service" ]; then
You can’t perform that action at this time.
0 commit comments