I combined the detailed instructions from the original blog post, and the more up to date instructions from the man page (using dnf instead of yum).
# sudo dnf -y --releasever=24 --installroot=$HOME/fedora-24 --disablerepo='*' --enablerepo=fedora --enablerepo=updates install systemd passwd dnf fedora-release vim-minimal
# sudo systemd-nspawn -D fedora-24
Spawning container fedora-24 on /home/alan-sysop/fedora-24
Press ^] three times within 1s to kill container.
-bash-4.3# passwd
Changing password for user root.
New password:
Retype new password:
Result:
passwd: Authentication token manipulation error
and an AVC popup, i.e. SELinux error. It says passwd is not allowed to unlink (replace) /etc/passwd. One of the suggestions from the "Troubleshoot" button is that I could assign the label passwd_file_t to /etc/passwd.
What's wrong, how can I fix it?