stages/dnf: use nspawn's vfs tree

dracut stumbled over the one we set up (errors about not being able to
access /dev/kmsg). Use the one that systemd-nspawn sets up instead.
This commit is contained in:
Lars Karlitski 2019-08-14 02:42:11 +03:00 committed by Tom Gundersen
parent 9741087e92
commit 29c396584f

View file

@ -32,9 +32,9 @@ def main(tree, options):
script = f"""
set -e
mkdir -p {tree}/dev {tree}/sys {tree}/proc
mount -t devtmpfs none {tree}/dev
mount -t sysfs none {tree}/sys
mount -t proc none {tree}/proc
mount -o bind /dev {tree}/dev
mount -o bind /sys {tree}/sys
mount -o bind /proc {tree}/proc
"""
returncode = subprocess.run(["/bin/sh", "-c", script]).returncode