mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-21 19:22:05 +00:00
Merge pull request #5607 from xuweibj/ib
fix issue 5604, delete extra / of rootimgdir
This commit is contained in:
commit
b23ec253be
@ -204,7 +204,12 @@ function cleanup()
|
||||
fi
|
||||
|
||||
# Clean up the ofed iso
|
||||
if mount | grep -q "$IMGROOTPATH/tmp/ofed/mountpoint"; then
|
||||
tmp_imgpath=$IMGROOTPATH
|
||||
while (echo $tmp_imgpath | grep "/$")
|
||||
do
|
||||
tmp_imgpath=${tmp_imgpath%/*}
|
||||
done
|
||||
if mount | grep -q "$tmp_imgpath/tmp/ofed/mountpoint"; then
|
||||
while ! umount "$IMGROOTPATH/tmp/ofed/mountpoint"
|
||||
do
|
||||
(( ++i > max_retry )) && echo "Umount $IMGROOTPATH/tmp/ofed/mountpoint failed" >&2 && break
|
||||
|
Loading…
x
Reference in New Issue
Block a user