Bind-mount vfs directories for each stage

Many of the stages need it anyway.
This commit is contained in:
Lars Karlitski 2019-05-06 00:23:56 +02:00
parent 658d691174
commit f6023ed78b
4 changed files with 20 additions and 40 deletions

View file

@ -58,6 +58,10 @@ def main(pipeline_path, from_archive, save):
set -e
mount -t tmpfs tmpfs /tmp
mount -t tmpfs tmpfs /var/tmp
mkdir -p {tree}/dev {tree}/sys {tree}/proc
mount --bind /dev {tree}/dev
mount --bind /sys {tree}/sys
mount --bind /proc {tree}/proc
stages/{name}
"""