mirror of
https://github.com/Telecominfraproject/ols-nos.git
synced 2025-10-31 18:17:52 +00:00
[build]: remove 15s sleep in build_debian.sh (#16672)
Remove 15s unconditional sleep. Instead check every second that /proc is not mounted. Go to the next step if /proc is not mounted anymore or after 15s.
This commit is contained in:
@@ -760,8 +760,7 @@ sudo LANG=C chroot $FILESYSTEM_ROOT fuser -vm /proc
|
|||||||
## Kill the processes
|
## Kill the processes
|
||||||
sudo LANG=C chroot $FILESYSTEM_ROOT fuser -km /proc || true
|
sudo LANG=C chroot $FILESYSTEM_ROOT fuser -km /proc || true
|
||||||
## Wait fuser fully kill the processes
|
## Wait fuser fully kill the processes
|
||||||
sleep 15
|
sudo timeout 15s bash -c 'until LANG=C chroot $0 umount /proc; do sleep 1; done' $FILESYSTEM_ROOT || true
|
||||||
sudo LANG=C chroot $FILESYSTEM_ROOT umount /proc || true
|
|
||||||
|
|
||||||
## Prepare empty directory to trigger mount move in initramfs-tools/mount_loop_root, implemented by patching
|
## Prepare empty directory to trigger mount move in initramfs-tools/mount_loop_root, implemented by patching
|
||||||
sudo mkdir $FILESYSTEM_ROOT/host
|
sudo mkdir $FILESYSTEM_ROOT/host
|
||||||
|
|||||||
Reference in New Issue
Block a user