Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/shellcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
permissions:
actions: read
contents: read
pull-requests: write # allow commenting on the PR
issues: write # allow commenting on the PR
security-events: write

steps:
Expand Down
6 changes: 5 additions & 1 deletion scripts/init.d-attach-static-vdis
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ STATE_DIR=/etc/xensource/static-vdis
# Source function library.
. /etc/init.d/functions

OUTPUT=$(/opt/xensource/bin/static-vdis detach ${UUID} 2>&1)
if [ $? -ne 0 ]; then
logger "Attempt to detach VDI: ${UUID} failed -- skipping (Error was: ${OUTPUT})"
fi
clear_stale_state(){
for i in $(ls -1 ${STATE_DIR}); do
# Clear the now-stale symlink to the attached disk. From this point the disk will
Expand Down Expand Up @@ -60,7 +64,7 @@ start() {
clear_stale_state
attach_all
RC=$?
echo
echo
return $RC
}

Expand Down
Loading