Compare commits

..

1 Commits

Author SHA1 Message Date
f5f12194e1 fix(turris,omnia): disable reboot after resize temporarily
All checks were successful
arcad/emissary-firmware/pipeline/head This commit looks good
2023-04-17 11:30:50 +02:00
2 changed files with 15 additions and 15 deletions

View File

@ -1 +1 @@
v2023.4.21-87a4509 v2023.4.14-813f837

View File

@ -1,25 +1,25 @@
#!/bin/sh #!/bin/sh
# set -eo pipefail set -eo pipefail
# FLAG_FILE=/root/.disk_resized FLAG_FILE=/root/.disk_resized
# if [ -f "$FLAG_FILE" ]; then if [ -f "$FLAG_FILE" ]; then
# exit exit
# fi fi
# DISK=/dev/mmcblk0 DISK=/dev/mmcblk0
# PARTITION="${DISK}p2" PARTITION="${DISK}p2"
# parted -s -a opt "$DISK" "resizepart 2 100%" parted -s -a opt "$DISK" "resizepart 2 100%"
# FS_SIZE="$(unsquashfs -s "$PARTITION" | grep -o 'Filesystem size [0-9]* bytes' | grep -o '[0-9][0-9]*')" FS_SIZE="$(unsquashfs -s "$PARTITION" | grep -o 'Filesystem size [0-9]* bytes' | grep -o '[0-9][0-9]*')"
# FS_OFFSET="$(expr '(' "$FS_SIZE" + 65535 ')' / 65536 '*' 65536)" FS_OFFSET="$(expr '(' "$FS_SIZE" + 65535 ')' / 65536 '*' 65536)"
# LOOP_DEVICE="$(losetup -f --show -o "$FS_OFFSET" "$PARTITION")" LOOP_DEVICE="$(losetup -f --show -o "$FS_OFFSET" "$PARTITION")"
# e2fsck -y -f "$LOOP_DEVICE" e2fsck -y -f "$LOOP_DEVICE"
# resize2fs "$LOOP_DEVICE" resize2fs "$LOOP_DEVICE"
# touch "$FLAG_FILE" touch "$FLAG_FILE"
# reboot # reboot