Skip to content

Commit d6c4e1b

Browse files
committed
scripts/generate_img.sh: windows needs to see this as fat, sorry no ext2...
Signed-off-by: Robert Nelson <[email protected]>
1 parent 2cd1577 commit d6c4e1b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/generate_img.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ detect_software () {
5353
check_for_command mkfs.vfat dosfstools
5454
check_for_command partprobe parted
5555
check_for_command kpartx kpartx
56-
check_for_command bmaptool bmap-tools
5756

5857
if [ "${NEEDS_COMMAND}" ] ; then
5958
echo ""
@@ -87,6 +86,7 @@ drive_error_ro () {
8786
sfdisk_partition_layout () {
8887
sfdisk_options="--force --in-order --Linux --unit M"
8988
sfdisk_boot_startmb="1"
89+
sfdisk_boot_fstype="0xE"
9090

9191
test_sfdisk=$(LC_ALL=C sfdisk --help | grep -m 1 -e "--in-order" || true)
9292
if [ "x${test_sfdisk}" = "x" ] ; then
@@ -96,7 +96,7 @@ sfdisk_partition_layout () {
9696
fi
9797

9898
LC_ALL=C sfdisk ${sfdisk_options} "${media}" <<-__EOF__
99-
${sfdisk_boot_startmb},,,-
99+
${sfdisk_boot_startmb},,${sfdisk_boot_fstype},-
100100
__EOF__
101101

102102
sync
@@ -131,8 +131,8 @@ format_partition () {
131131

132132
format_boot_partition () {
133133
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"
136136
format_partition
137137
}
138138

0 commit comments

Comments
 (0)