mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-22 22:20:39 +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()
|
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="$@"
|
[ "$1" ] && devices="$@"
|
||||||
local sync=/usr/bin/sync
|
local sync=/usr/bin/sync
|
||||||
[ -x $root/$sync ] || sync=""
|
[ -x $root/$sync ] || sync=""
|
||||||
|
|
@ -828,6 +828,7 @@ unmount_devices()
|
||||||
for d in $devices; do
|
for d in $devices; do
|
||||||
check_mount $d && {
|
check_mount $d && {
|
||||||
[ "$sync" -a -e $root$d -a $d != $ssh_auth_sock ] && run $sync -f $root$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
|
run umount $root$d
|
||||||
}
|
}
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue