mirror of
https://github.com/elseif/MikroTikPatch
synced 2026-07-21 20:49:35 +00:00
Change alignment setting from 1 to 8 in sgdisk commands
change to 4k align Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
parent
1403e9c3d5
commit
7163a9d629
12
.github/workflows/patch_v7.yml
vendored
12
.github/workflows/patch_v7.yml
vendored
@ -623,7 +623,7 @@ jobs:
|
|||||||
truncate --size 128M $BUILD_DIR/chr-$VERSION$ARCH_EXT.img
|
truncate --size 128M $BUILD_DIR/chr-$VERSION$ARCH_EXT.img
|
||||||
sgdisk \
|
sgdisk \
|
||||||
--zap-all \
|
--zap-all \
|
||||||
--set-alignment=1 \
|
--set-alignment=8 \
|
||||||
--new=1:34:+32M --typecode=1:8300 --change-name=1:"RouterOS Boot" \
|
--new=1:34:+32M --typecode=1:8300 --change-name=1:"RouterOS Boot" \
|
||||||
--new=2:0:0 --typecode=2:8300 --change-name=2:"RouterOS" \
|
--new=2:0:0 --typecode=2:8300 --change-name=2:"RouterOS" \
|
||||||
--gpttombr=1:2 \
|
--gpttombr=1:2 \
|
||||||
@ -632,7 +632,7 @@ jobs:
|
|||||||
printf '\x01' | dd of=$BUILD_DIR/mbr.bin bs=1 count=1 seek=336 conv=notrunc
|
printf '\x01' | dd of=$BUILD_DIR/mbr.bin bs=1 count=1 seek=336 conv=notrunc
|
||||||
sgdisk \
|
sgdisk \
|
||||||
--zap-all \
|
--zap-all \
|
||||||
--set-alignment=1 \
|
--set-alignment=8 \
|
||||||
--new=1:34:+32M --typecode=1:EF00 --change-name=1:"RouterOS Boot" \
|
--new=1:34:+32M --typecode=1:EF00 --change-name=1:"RouterOS Boot" \
|
||||||
--new=2:0:0 --typecode=2:8300 --change-name=2:"RouterOS" \
|
--new=2:0:0 --typecode=2:8300 --change-name=2:"RouterOS" \
|
||||||
$BUILD_DIR/chr-$VERSION$ARCH_EXT.img
|
$BUILD_DIR/chr-$VERSION$ARCH_EXT.img
|
||||||
@ -699,7 +699,7 @@ jobs:
|
|||||||
truncate --size 128M $BUILD_DIR/chr-$VERSION$ARCH_EXT-legacy-bios.img
|
truncate --size 128M $BUILD_DIR/chr-$VERSION$ARCH_EXT-legacy-bios.img
|
||||||
sgdisk \
|
sgdisk \
|
||||||
--zap-all \
|
--zap-all \
|
||||||
--set-alignment=1 \
|
--set-alignment=8 \
|
||||||
--new=1:34:+32M --typecode=1:8300 --change-name=1:"RouterOS Boot" --attributes=1:set:2 \
|
--new=1:34:+32M --typecode=1:8300 --change-name=1:"RouterOS Boot" --attributes=1:set:2 \
|
||||||
--new=2:0:-4096 --typecode=2:8300 --change-name=2:"RouterOS" \
|
--new=2:0:-4096 --typecode=2:8300 --change-name=2:"RouterOS" \
|
||||||
--gpttombr=1:2 \
|
--gpttombr=1:2 \
|
||||||
@ -710,7 +710,7 @@ jobs:
|
|||||||
printf '\x80' | sudo dd of=$BUILD_DIR/mbr.bin bs=1 count=1 seek=446 conv=notrunc
|
printf '\x80' | sudo dd of=$BUILD_DIR/mbr.bin bs=1 count=1 seek=446 conv=notrunc
|
||||||
sgdisk \
|
sgdisk \
|
||||||
--zap-all \
|
--zap-all \
|
||||||
--set-alignment=1 \
|
--set-alignment=8 \
|
||||||
--new=1:34:+32M --typecode=1:8300 --change-name=1:"RouterOS Boot" --attributes=1:set:2 \
|
--new=1:34:+32M --typecode=1:8300 --change-name=1:"RouterOS Boot" --attributes=1:set:2 \
|
||||||
--new=2:0:-4096 --typecode=2:8300 --change-name=2:"RouterOS" \
|
--new=2:0:-4096 --typecode=2:8300 --change-name=2:"RouterOS" \
|
||||||
$BUILD_DIR/chr-$VERSION$ARCH_EXT-legacy-bios.img
|
$BUILD_DIR/chr-$VERSION$ARCH_EXT-legacy-bios.img
|
||||||
@ -782,7 +782,7 @@ jobs:
|
|||||||
truncate --size 128M $BUILD_DIR/chr-$VERSION$ARCH_EXT.img
|
truncate --size 128M $BUILD_DIR/chr-$VERSION$ARCH_EXT.img
|
||||||
sgdisk \
|
sgdisk \
|
||||||
--zap-all \
|
--zap-all \
|
||||||
--set-alignment=1 \
|
--set-alignment=8 \
|
||||||
--new=1:34:+32M --typecode=1:8300 --change-name=1:"RouterOS Boot" \
|
--new=1:34:+32M --typecode=1:8300 --change-name=1:"RouterOS Boot" \
|
||||||
--new=2:0:0 --typecode=2:8300 --change-name=2:"RouterOS" \
|
--new=2:0:0 --typecode=2:8300 --change-name=2:"RouterOS" \
|
||||||
--gpttombr=1:2 \
|
--gpttombr=1:2 \
|
||||||
@ -791,7 +791,7 @@ jobs:
|
|||||||
printf '\x01' | dd of=$BUILD_DIR/mbr.bin bs=1 count=1 seek=336 conv=notrunc
|
printf '\x01' | dd of=$BUILD_DIR/mbr.bin bs=1 count=1 seek=336 conv=notrunc
|
||||||
sgdisk \
|
sgdisk \
|
||||||
--zap-all \
|
--zap-all \
|
||||||
--set-alignment=1 \
|
--set-alignment=8 \
|
||||||
--new=1:34:+32M --typecode=1:EF00 --change-name=1:"RouterOS Boot" \
|
--new=1:34:+32M --typecode=1:EF00 --change-name=1:"RouterOS Boot" \
|
||||||
--new=2:0:0 --typecode=2:8300 --change-name=2:"RouterOS" \
|
--new=2:0:0 --typecode=2:8300 --change-name=2:"RouterOS" \
|
||||||
$BUILD_DIR/chr-$VERSION$ARCH_EXT.img
|
$BUILD_DIR/chr-$VERSION$ARCH_EXT.img
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user