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.
2 parents ac66f58 + e930fb3 commit 7134bc8Copy full SHA for 7134bc8
docker/ceph/ceph-osd/extend_start.sh
@@ -39,7 +39,12 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
39
sgdisk --new=1:0:+100M --mbrtogpt -- "${OSD_BS_DEV}"
40
sgdisk --largest-new=2 --mbrtogpt -- "${OSD_BS_DEV}"
41
partprobe || true
42
- sgdisk --zap-all -- "${OSD_BS_DEV}"2
+
43
+ if [[ "${OSD_BS_DEV}" =~ "/dev/loop" ]]; then
44
+ sgdisk --zap-all -- "${OSD_BS_DEV}"p2
45
+ else
46
+ sgdisk --zap-all -- "${OSD_BS_DEV}"2
47
+ fi
48
fi
49
50
if [ -n "${OSD_BS_WAL_DEV}" ] && [ "${OSD_BS_BLK_DEV}" != "${OSD_BS_WAL_DEV}" ] && [ -n "${OSD_BS_WAL_PARTNUM}" ]; then
0 commit comments