[Solved] Building Artix as a vagrant box issue: 'Cannot access /run/dinitctl'
I'm using vagrant packer to build a customized Artix Linux box,
but I'm running into this issue for the box:
/usr/bin/ls: cannot access '/run/dinitctl': No such file or directory
To clarify:
Vagrant packer starts a VM, loads an inserted ISO
and then uses scripts to install the box.
It has no issue with enabling dinitctl services on the loaded ISO,
but for some reason cannot initiate dinitctl on the box.
This is my list of scripts:
- liveVM.sh
- tables.sh
- partitions.sh
- base.sh
- mirrors.sh
- bootloader.sh
- pacman.sh
- setup.sh
_setup.sh_
#!/usr/bin/env bash
. /tmp/files/vars.sh
NAME_SH=setup.sh
# stop on errors
set -eu
echo ">>>> ${NAME_SH}: Debugging part.."
/usr/bin/artix-chroot ${ROOT_DIR} /usr/bin/ls -lha /dev/
/usr/bin/artix-chroot ${ROOT_DIR} ln -s /dev/dinitctl /run/dinitctl
/usr/bin/artix-chroot ${ROOT_DIR} /usr/bin/ls -lha /run/dinitctl
/usr/bin/artix-chroot ${ROOT_DIR} /usr/bin/dinitctl list
What to do?