We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8564e80 commit 10bc4dcCopy full SHA for 10bc4dc
pkg/cidata/cidata.TEMPLATE.d/boot/05-persistent-data-volume.sh
@@ -22,7 +22,7 @@ if [ "$(awk '$2 == "/" {print $3}' /proc/mounts)" == "tmpfs" ]; then
22
IN_USE=false
23
# Looking for a disk that is not mounted or partitioned
24
for PART in $(awk '/^\/dev\// {gsub("/dev/", ""); print $1}' /proc/mounts); do
25
- if [ "${DISK}" == "${PART}" -o -e /sys/block/${DISK}/${PART} ]; then
+ if [ "${DISK}" == "${PART}" ] || [ -e /sys/block/${DISK}/${PART} ]; then
26
IN_USE=true
27
break
28
fi
0 commit comments