Skip to content

Commit

Permalink
use mount --make-private on $FAI_ROOT/dev and $FAI_ROOT/dev/pts in …
Browse files Browse the repository at this point in the history
…task updatebase to avoid "target is busy" errors and leftover /target and /target/dev mounts after simultaneous dirinstalls
  • Loading branch information
abezella authored and Thomas Lange committed Aug 5, 2018
1 parent a6a4014 commit b040419
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/updatebase
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ echo "Updating base"
if [ "$FAI_ACTION" = "install" -o "$FAI_ACTION" = "dirinstall" ]; then
mount -t proc proc $FAI_ROOT/proc
mount -t sysfs sysfs $FAI_ROOT/sys
[ -f /etc/init.d/udev ] && mount --bind /dev $FAI_ROOT/dev
if [ -f /etc/init.d/udev ]; then
mount --bind /dev $FAI_ROOT/dev
mount --make-private $FAI_ROOT/dev
fi
mount -t devpts devpts $FAI_ROOT/dev/pts
mount --make-private $FAI_ROOT/dev/pts

# if libc is upgraded init u is called in chroot environment and
# then init will eat up much cpu time
Expand Down

0 comments on commit b040419

Please sign in to comment.