Skip to content

Commit

Permalink
Merge pull request #20 from sladiri/patch-1
Browse files Browse the repository at this point in the history
fix check for install target list
  • Loading branch information
sysrich authored May 27, 2024
2 parents f7a99f1 + 67e1506 commit cc15e24
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion usr/lib/tik/lib/tik-functions
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ get_disk() {
for disk_meta in $(
eval lsblk "${blk_opts}" | grep -E "disk|raid" | tr ' ' ":"
);do
disk_size=$(echo "${disk_meta}" | cut -f2 -d:)
if [[ "${disk_size}" == "0B" ]]; then
# ignore disks with no size, e.g. empty SD card readers
continue
fi
disk_device="$(echo "${disk_meta}" | cut -f1 -d:)"
if [[ "${tik_install_disk_part}" == "${disk_device}"* ]]; then
# ignore install source device
Expand All @@ -113,7 +118,6 @@ get_disk() {
# ignore zram devices
continue
fi
disk_size=$(echo "${disk_meta}" | cut -f2 -d:)
disk_device_by_id=$(
get_persistent_device_from_unix_node "${disk_device}" "${disk_id}"
)
Expand Down

0 comments on commit cc15e24

Please sign in to comment.