wok rev 25459
cookutils: rework umount_aufs()
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 27 16:54:01 2022 +0000 (2022-09-27) |
parents | 9a714ac859a3 |
children | 7dd01dedad38 |
files | cookutils/receipt cookutils/stuff/rework-umount_aufs.patch |
line diff
1.1 --- a/cookutils/receipt Tue Sep 27 16:21:52 2022 +0000 1.2 +++ b/cookutils/receipt Tue Sep 27 16:54:01 2022 +0000 1.3 @@ -34,6 +34,7 @@ 1.4 patch -p1 -i $stuff/wanted-version.patch 1.5 patch -p1 -i $stuff/avoid-gawk-warning.patch 1.6 patch -p1 -i $stuff/avoid-hard-link-exist-error.patch 1.7 + patch -p1 -i $stuff/rework-umount_aufs.patch 1.8 sed -i 's|preinit core-4in1|preinit core-4in1 core-5in1|' cookiso 1.9 mkdir -p $DESTDIR/usr/bin $DESTDIR/etc/slitaz 1.10 make DESTDIR=$DESTDIR install
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/cookutils/stuff/rework-umount_aufs.patch Tue Sep 27 16:54:01 2022 +0000 2.3 @@ -0,0 +1,16 @@ 2.4 +umount_aufs() hangs 20mn sporadicly. 2.5 +It may keep /dev/shm/*root mounted 2.6 + 2.7 +--- a/cook 2.8 ++++ b/cook 2.9 +@@ -1011,8 +1011,9 @@ 2.10 + 2.11 + umount_aufs() { 2.12 + tac ${1}rw/aufs-umount.sh | sh 2.13 ++ umount -l ${1}root 2> /dev/null 2.14 ++ umount -l ${1}root 2> /dev/null 2.15 + rm -rf ${1}rw 2.16 +- umount ${1}root 2.17 + rmdir ${1}r* 2.18 + } 2.19 +