diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 78848e0..6c752fc 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,6 +2,14 @@ Changelog for package turtlebot4_setup ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +2.0.2 (2024-10-23) +------------------ +* Add e2fsck to SD-flasher script +* Bump default version numbers +* Fix default hostname to match released SD card images +* Append `p2` for `mmcblk` devices, but just `2` for `sd*` devices when expanding the last partition +* Contributors: Chris Iverach-Brereton + 2.0.1 (2024-10-04) ------------------ * Add a copy of the boot/firmware files to /etc/turtlebot for reference in case users modify these and want a clean, offline copy for reference diff --git a/etc/turtlebot4/system b/etc/turtlebot4/system index 9d9ae4a..e7c3d2a 100644 --- a/etc/turtlebot4/system +++ b/etc/turtlebot4/system @@ -1,4 +1,4 @@ MODEL:lite -VERSION:2.0.0 +VERSION:2.0.2 ROS:Jazzy -HOSTNAME:ubuntu \ No newline at end of file +HOSTNAME:turtlebot4 \ No newline at end of file diff --git a/package.xml b/package.xml index 298b4a7..1784330 100644 --- a/package.xml +++ b/package.xml @@ -2,7 +2,7 @@ turtlebot4_setup - 2.0.1 + 2.0.2 Turtlebot4 setup scripts rkreinin Apache 2.0 diff --git a/scripts/sd_flash.sh b/scripts/sd_flash.sh index f7adc61..05046da 100755 --- a/scripts/sd_flash.sh +++ b/scripts/sd_flash.sh @@ -41,6 +41,13 @@ sudo dcfldd if=$1 sizeprobe=if bs=1M$of for device in $device_names do + if [[ $device == mmcblk* ]]; then + last_partition="${device}p2" + else + last_partition="${device}2" + fi + + sudo e2fsck -f /dev/${last_partition} sudo growpart /dev/$device 2 - sudo resize2fs /dev/${device}p2 + sudo resize2fs /dev/${last_partition} done \ No newline at end of file diff --git a/turtlebot4_setup/conf.py b/turtlebot4_setup/conf.py index 2e538af..509beb2 100644 --- a/turtlebot4_setup/conf.py +++ b/turtlebot4_setup/conf.py @@ -88,9 +88,9 @@ class Conf(): default_system_conf = { SystemOptions.MODEL: 'lite', - SystemOptions.VERSION: '2.0.0', + SystemOptions.VERSION: '2.0.2', SystemOptions.ROS: 'Jazzy', - SystemOptions.HOSTNAME: 'ubuntu', + SystemOptions.HOSTNAME: 'turtlebot4', } default_wifi_conf = {