/etc/os-release symlink isn't created automatically
Created by: swrobel
I was under the impression that systemd automagically symlinks /etc/os-release
to ../usr/lib/os-release
but this doesn't seem to be happening for some reason on the arch docker image. I discovered by trial & error w/ older versions of the image that reinstalling or upgrading cryptsetup
will create the symlink ... why, I don't know.
$ docker run -it archlinux:20200407 sh -c "ls -l /etc/os-release; pacman -Sy --noconfirm cryptsetup > /dev/null; ls -l /etc/os-release"
ls: cannot access '/etc/os-release': No such file or directory
warning: cryptsetup-2.3.1-1 is up to date -- reinstalling
lrwxrwxrwx 1 root root 21 Apr 21 23:36 /etc/os-release -> ../usr/lib/os-release