Update rootfs resize

rootfs can be scaled only in the boot script
This commit is contained in:
BuGu
2024-08-22 15:52:24 +08:00
parent cb7a562241
commit db210284e6
7 changed files with 7 additions and 6 deletions

0
ramdisk/initramfs/musl_riscv64/busybox Executable file → Normal file
View File

0
ramdisk/initramfs/musl_riscv64/e2fsck Executable file → Normal file
View File

12
ramdisk/initramfs/musl_riscv64/init Executable file → Normal file
View File

@@ -91,12 +91,12 @@ then
fi
mkdir /realroot
parted -s /dev/mmcblk0 "resizepart 2 -0"
echo "yes
100%
" | parted ---pretend-input-tty /dev/mmcblk0 "resizepart 2 100%"
#e2fsck -fvp /dev/mmcblk0p2
resize2fs /dev/mmcblk0p2
# parted -s /dev/mmcblk0 "resizepart 2 -0"
# echo "yes
# 100%
# " | parted ---pretend-input-tty /dev/mmcblk0 "resizepart 2 100%"
# #e2fsck -fvp /dev/mmcblk0p2
# resize2fs /dev/mmcblk0p2
mount -o rw /dev/mmcblk0p2 /realroot
mfail="$?"

0
ramdisk/initramfs/musl_riscv64/libc.so Executable file → Normal file
View File

BIN
ramdisk/initramfs/musl_riscv64/parted Executable file → Normal file

Binary file not shown.

BIN
ramdisk/initramfs/musl_riscv64/resize2fs Executable file → Normal file

Binary file not shown.