Skip to content

Commit

Permalink
armbian-next: rootfs: don't stop if df -h fails
Browse files Browse the repository at this point in the history
- still needs work
  • Loading branch information
rpardini committed Jan 9, 2023
1 parent d42d340 commit e84d327
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/functions/image/rootfs-to-image.sh
Expand Up @@ -56,9 +56,9 @@ create_image_from_sdcard_rootfs() {
update_initramfs "$MOUNT"
}

# DEBUG: print free space
# DEBUG: print free space @TODO this needs work, grepping might not be ideal here
local freespace
freespace=$(LC_ALL=C df -h)
freespace=$(LC_ALL=C df -h || true) # don't break on failures
display_alert "Free SD cache" "$(echo "$freespace" | grep "${SDCARD}" | awk '{print $5}')" "info"
display_alert "Mount point" "$(echo "$freespace" | grep "${MOUNT}" | head -1 | awk '{print $5}')" "info"

Expand Down

0 comments on commit e84d327

Please sign in to comment.