elif grep -iq "dkms" "$DRIVERFILE"; then
pacman -S --noconfirm nvidia-dkms nvidia-utils
- if ! uname -m | grep -q '^i'; then
+ if ! uname -m | grep -q '^i' && command -v systemctl; then
pacman -S --noconfirm lib32-nvidia-utils
fi
elif grep -iq "nvidia" "$DRIVERFILE"; then
echo "defaulting to open source driver"
pacman -S --noconfirm mesa xf86-video-nouveau
fi
- pacman -S --noconfirm --needed vulkan-icd-loader lib32-vulkan-icd-loader
+ pacman -S --noconfirm --needed vulkan-icd-loader
+ if command -v systemctl; then
+ pacman -S --noconfirm --needed lib32-vulkan-icd-loader
+ fi
## Intel
elif lspci | grep -i vga | grep -i intel; then
echo "intel integrated detected"
fi
# 32 bit mesa
-if ! uname -m | grep -q '^i'; then
+if ! uname -m | grep -q '^i' && command -v systemctl; then
pacman -S --noconfirm lib32-mesa
fi
mkdir -p /opt/instantos
touch /opt/instantos/realinstall
-# enable multilib
-# do it before updating mirrors
-if uname -m | grep -q '^i' ||
- grep -qi '^\[multilib' /etc/pacman.conf ||
- grep -qi 'manjaro' /etc/os-release; then
- echo "not enabling multilib"
-else
- echo "enabling multilib"
- echo "[multilib]" >>/etc/pacman.conf
- echo "Include = /etc/pacman.d/mirrorlist" >>/etc/pacman.conf
+if command -v systemctl; then
+ # enable multilib
+ # do it before updating mirrors
+ if uname -m | grep -q '^i' ||
+ grep -qi '^\[multilib' /etc/pacman.conf ||
+ grep -qi 'manjaro' /etc/os-release; then
+ echo "not enabling multilib"
+ else
+ echo "enabling multilib"
+ echo "[multilib]" >>/etc/pacman.conf
+ echo "Include = /etc/pacman.d/mirrorlist" >>/etc/pacman.conf
+ fi
fi
pacman -Sy --noconfirm
# install reflector for automirror
-if ! grep -i 'manjaro' /etc/os-release; then
+if ! grep -i 'manjaro' /etc/os-release && command -v systemctl; then
while ! pacman -S --noconfirm --needed reflector; do
echo "reflector install failed"
sleep 10