Skip to content

Commit

Permalink
print out disk model and partition size in expand_rootfs script
Browse files Browse the repository at this point in the history
  • Loading branch information
ading2210 committed Sep 1, 2024
1 parent 0fa0aa0 commit a295930
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rootfs/usr/local/bin/expand_rootfs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ part_name="$(echo "$part_dev" | rev | cut -d'/' -f1 | rev)"
part_num="$(cat /proc/partitions | grep "$part_name" | awk '{print $2}')"

echo "Automatically detected root filesystem:"
echo "Disk: $disk_dev"
echo "Partition: $part_dev"
fdisk -l "$disk_dev" | grep "${disk_dev}:" -A 1
echo
echo "Automatically detected root partition:"
fdisk -l "$disk_dev" | grep "${part_dev}"
echo
read -p "Press enter to continue, or ctr+c to cancel. "

Expand Down

0 comments on commit a295930

Please sign in to comment.