mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 20:13:32 +01:00
integrate-distro.sh: Wait after umount /proc/fs/nfsd
Wait 2 seconds between unmounting /proc/fs/nfsd and unmounting /dev. This fixes device busy errors. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
9d7059b64d
commit
95ad0b0cc4
1 changed files with 2 additions and 1 deletions
|
|
@ -820,7 +820,7 @@ mount_devices()
|
|||
|
||||
unmount_devices()
|
||||
{
|
||||
local devices="$ssh_auth_sock /srv/ftp /proc /sys /dev /boot /"
|
||||
local devices="$ssh_auth_sock /srv/ftp /proc/fs/nfsd /proc /sys /dev /boot /"
|
||||
[ "$1" ] && devices="$@"
|
||||
local sync=/usr/bin/sync
|
||||
[ -x $root/$sync ] || sync=""
|
||||
|
|
@ -828,6 +828,7 @@ unmount_devices()
|
|||
for d in $devices; do
|
||||
check_mount $d && {
|
||||
[ "$sync" -a -e $root$d -a $d != $ssh_auth_sock ] && run $sync -f $root$d
|
||||
[ "$d" = /dev ] && sleep 2 # need to do this, otherwise dev is busy, no idea why
|
||||
run umount $root$d
|
||||
}
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue