Compare commits

...

5 Commits

Author SHA1 Message Date
d0f6e63007 feat: use emissary v2023.4.21-87a4509
Some checks reported errors
arcad/emissary-firmware/pipeline/head Something is wrong with the build of this commit
2023-04-21 10:51:10 +00:00
087f8a27a8 feat: use emissary v2023.4.20-fcd159c
Some checks reported errors
arcad/emissary-firmware/pipeline/head Something is wrong with the build of this commit
2023-04-20 17:32:21 +00:00
42c157a1e5 feat: use emissary v2023.4.20-ef3048b
Some checks reported errors
arcad/emissary-firmware/pipeline/head Something is wrong with the build of this commit
2023-04-20 10:26:56 +00:00
7b722293b7 feat: use emissary v2023.4.20-3d01cf0
Some checks reported errors
arcad/emissary-firmware/pipeline/head Something is wrong with the build of this commit
2023-04-20 09:04:43 +00:00
d37c10afae fix(turris,omnia): disable reboot after resize temporarily
Some checks reported errors
arcad/emissary-firmware/pipeline/head Something is wrong with the build of this commit
2023-04-17 11:57:46 +02:00
2 changed files with 16 additions and 16 deletions

View File

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

View File

@ -1,25 +1,25 @@
#!/bin/sh
set -eo pipefail
# set -eo pipefail
FLAG_FILE=/root/.disk_resized
# FLAG_FILE=/root/.disk_resized
if [ -f "$FLAG_FILE" ]; then
exit
fi
# if [ -f "$FLAG_FILE" ]; then
# exit
# fi
DISK=/dev/mmcblk0
PARTITION="${DISK}p2"
# DISK=/dev/mmcblk0
# 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_OFFSET="$(expr '(' "$FS_SIZE" + 65535 ')' / 65536 '*' 65536)"
LOOP_DEVICE="$(losetup -f --show -o "$FS_OFFSET" "$PARTITION")"
# 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)"
# LOOP_DEVICE="$(losetup -f --show -o "$FS_OFFSET" "$PARTITION")"
e2fsck -y -f "$LOOP_DEVICE"
resize2fs "$LOOP_DEVICE"
# e2fsck -y -f "$LOOP_DEVICE"
# resize2fs "$LOOP_DEVICE"
touch "$FLAG_FILE"
# touch "$FLAG_FILE"
reboot
# reboot