mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 20:13:32 +01:00
integrate-distro.sh: Run sync on every file seperately
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
bfcbd76e2e
commit
9d8469562b
1 changed files with 5 additions and 2 deletions
|
|
@ -817,10 +817,13 @@ unmount_devices()
|
|||
local devices="$ssh_auth_sock /srv/ftp /proc /sys /dev /boot /"
|
||||
[ "$1" ] && devices="$@"
|
||||
local sync=/usr/bin/sync
|
||||
[ -x $root/$sync ] && run_chroot $sync
|
||||
[ -x $root/$sync ] || sync=""
|
||||
local d
|
||||
for d in $devices; do
|
||||
check_mount $d && run umount $root$d
|
||||
check_mount $d && {
|
||||
[ "$sync" -a -e $root$d ] && run $sync -f $root$d
|
||||
run umount $root$d
|
||||
}
|
||||
done
|
||||
rm -f $ssh_auth_sock
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue