recovery /var/service after deleting by mistake
ayoubelmhamdi opened this issue · 5 comments
ayoubelmhamdi commented
I delete the directory called /var/service
, but void Linux can't boot anymore,
how can recreate this folder again, because I try this why but not working
- booting from grub with
linux /boot/vmlinuz-5.. root=.... rw loglevel=4 init=/bin/bash
- then
$ mkdir /var/service
$ ln -s /etc/agetty-tty1 /var/service
ayoubelmhamdi commented
it stopped at
runnit: leave stage: /etc/runnit/1
runnit: enter stage: /etc/runnit/1
runsvchdir: default: current.
leahneukirchen commented
It is a symlink by default lrwxrwxrwx 1 root root 29 Nov 23 14:43 /var/service -> ../run/runit/runsvdir/current
.
Force installing runit should also fix it.
ayoubelmhamdi commented
after reinstalling runit
$ xbps-install -f runit
it not look like a directory to link services inside this direcory
$ ls /var/service
lrwxrwxrwx 1 root root 29 Nov 23 14:43 /var/service -> ../run/runit/runsvdir/current
$ ls /var/service/
no such file or directory
leahneukirchen commented
The dir will only exist on a booted systems. Restore your symlinks to /etc/runit/runsvdir/default
ayoubelmhamdi commented
it's work
thank you so much