[scripts] configure proper partition type for ext3 boot fs

This commit is contained in:
Fabio Erculiani 2012-02-22 15:57:50 +01:00
parent 65f0d7f8e8
commit 5bab5bc71c
2 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,7 @@
export BOOT_PART_MKFS_ARGS="-L boot"
export BOOT_PART_TYPE=ext3
export BOOT_PART_TYPE_MBR=83
export BOOT_PART_TYPE_INSIDE_ROOT=1
export ROOT_PART_TYPE=ext4
export MAKE_TARBALL=0

View File

@ -37,6 +37,7 @@ CHROOT_DIR="${5}"
MAKE_TARBALL="${MAKE_TARBALL:-1}"
# Boot partition type
BOOT_PART_TYPE="${BOOT_PART_TYPE:-vfat}"
BOOT_PART_TYPE_MBR="${BOOT_PART_TYPE_MBR:-0x0C}"
BOOT_PART_MKFS_ARGS="${BOOT_PART_MKFS_ARGS:--n boot -F 32}"
# Root partition type
ROOT_PART_TYPE="${ROOT_PART_TYPE:-ext3}"
@ -92,7 +93,7 @@ echo "Start offset : ${STARTOFFSET} bytes"
# Starts at sect 63, ends at sect 144584, each sector is 512bytes
# In fact it creates 9 cyls
{
echo ,9,0x0C,*
echo ,9,${BOOT_PART_TYPE_MBR},*
echo ,,,-
} | sfdisk -D -H 255 -S 63 -C $CYLINDERS $DRIVE