Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
add sfdisk script and change partitions to fat32 (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparkles-Laurel authored Jul 28, 2023
1 parent 9c187f6 commit c020007
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/partable.m4
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ define(`STAGE1_TYPE', `0C')dnl
# the stage2 bootloader (and ramdisk images) partition
define(`STAGE2_START', `1471488')dnl
define(`STAGE2_SIZE', `1469440')dnl
define(`STAGE2_TYPE', `83')dnl
define(`STAGE2_TYPE', `0C')dnl

# Run fdisk to get the device size and capture the output
define(`FDISK_OUTPUT', `esyscmd(`fdisk -l `device_name)')dnl
Expand All @@ -30,4 +30,4 @@ define(`PART3_START', `STAGE2_START + STAGE2_SIZE')dnl
define(`PART3_SIZE', `DEVICE_SIZE - PART3_START')dnl

# the third partition (freely available space)
define(`PART3_TYPE', `83')dnl
define(`PART3_TYPE', `0C')dnl
6 changes: 6 additions & 0 deletions util/partable.sfd
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
label: $reclabel_type
unit: sectors

$device_name"1 : start=$STAGE1_START, size=$STAGE1_SIZE, type=$STAGE1_TYPE # FAT32
$device_name"2 : start=$STAGE2_START, size=$STAGE2_SIZE, type=$STAGE2_TYPE # Linux
$device_name"3 : start=$PART3_START, size=$PART3_SIZE, type=$PART3_TYPE # Freely available space

0 comments on commit c020007

Please sign in to comment.