Merge "Fix issue in extract image"
This commit is contained in:
commit
b706802a1c
@ -97,9 +97,9 @@ function extract_image() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
for LOOPDEV in ${LOOPDEVS}; do
|
for LOOPDEV in ${LOOPDEVS}; do
|
||||||
fstype=$(lsblk --all --nodeps --noheadings --output FSTYPE $LOOPDEV)
|
fstype=$(sudo blkid -o value -s TYPE -p "${LOOPDEV}" 2>/dev/null)
|
||||||
label=$(lsblk --all --nodeps --noheadings --output LABEL $LOOPDEV)
|
label=$(sudo blkid -o value -s LABEL -p "${LOOPDEV}" 2>/dev/null)
|
||||||
part_type=$(lsblk --all --nodeps --noheadings --output PARTTYPE $LOOPDEV)
|
part_type=$(sudo blkid -o value -s PART_ENTRY_TYPE -p "${LOOPDEV}" 2>/dev/null)
|
||||||
|
|
||||||
if [ -z "${fstype}" ]; then
|
if [ -z "${fstype}" ]; then
|
||||||
# Ignore block device with no filesystem type
|
# Ignore block device with no filesystem type
|
||||||
|
Loading…
Reference in New Issue
Block a user