Skip to content

Commit

Permalink
fs/install: Maybe fix internal installation by removing partx calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Maccraft123 committed Nov 20, 2024
1 parent 41dd23f commit b09e02a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions fs/install
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,11 @@ if [ $INSTMED != this ]; then
case $BOOTFW in
depthcharge)
dd if=/dev/zero of=$INTDEV bs=512k count=128 seek=$EMMC_OFFSET
partx -d $INTDEV
parted --script $INTDEV mklabel gpt >/dev/null 2>&1 || true # ???
cgpt create $INTDEV
cgpt add -i 1 -t kernel -b $(expr 8192 + $EMMC_OFFSET) -s 65536 -l IntKernelA -S 1 -T 2 -P 10 ${INTDEV}
cgpt add -i 2 -t kernel -b $(expr 73728 + $EMMC_OFFSET) -s 65536 -l IntKernelB -S 0 -T 2 -P 5 ${INTDEV}
cgpt add -i 3 -t data -b $(expr 139264 + $EMMC_OFFSET) -s $(expr $(cgpt show ${INTDEV} | grep 'Sec GPT table' | awk '{print $1}') - $(expr 139264 + $EMMC_OFFSET)) -l IntRoot ${INTDEV}
partx -a $INTDEV
udevadm trigger
# i sure do love confusing one-liners

ROOTPART=/dev/disk/by-partlabel/IntRoot
KERNPART=/dev/disk/by-partlabel/IntKernelA
Expand Down

0 comments on commit b09e02a

Please sign in to comment.