@@ -53,7 +53,6 @@ detect_software () {
53
53
check_for_command mkfs.vfat dosfstools
54
54
check_for_command partprobe parted
55
55
check_for_command kpartx kpartx
56
- check_for_command bmaptool bmap-tools
57
56
58
57
if [ " ${NEEDS_COMMAND} " ] ; then
59
58
echo " "
@@ -87,6 +86,7 @@ drive_error_ro () {
87
86
sfdisk_partition_layout () {
88
87
sfdisk_options=" --force --in-order --Linux --unit M"
89
88
sfdisk_boot_startmb=" 1"
89
+ sfdisk_boot_fstype=" 0xE"
90
90
91
91
test_sfdisk=$( LC_ALL=C sfdisk --help | grep -m 1 -e " --in-order" || true)
92
92
if [ " x${test_sfdisk} " = " x" ] ; then
@@ -96,7 +96,7 @@ sfdisk_partition_layout () {
96
96
fi
97
97
98
98
LC_ALL=C sfdisk ${sfdisk_options} " ${media} " << -__EOF__
99
- ${sfdisk_boot_startmb} ,,,-
99
+ ${sfdisk_boot_startmb} ,,${sfdisk_boot_fstype} ,-
100
100
__EOF__
101
101
102
102
sync
@@ -131,8 +131,8 @@ format_partition () {
131
131
132
132
format_boot_partition () {
133
133
mkfs_partition=" ${media_prefix}${media_partition} "
134
- mkfs=" mkfs.ext2 "
135
- mkfs_label=" -L BEAGLEBONE"
134
+ mkfs=" mkfs.vfat -F 16 "
135
+ mkfs_label=" -n BEAGLEBONE"
136
136
format_partition
137
137
}
138
138
0 commit comments