mvebu: uDPU/eDPU: mount misc partition with ZSTD compression
authorRobert Marko <robert.marko@sartura.hr>
Mon, 10 Jul 2023 11:43:51 +0000 (13:43 +0200)
committerRobert Marko <robert.marko@sartura.hr>
Mon, 17 Jun 2024 18:16:20 +0000 (20:16 +0200)
F2FS requires the compression algorith to be passed as argument while
mounting, so lets do so for the misc partition.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
target/linux/mvebu/cortexa53/base-files/lib/preinit/82_uDPU

index 8d5a482b8290d8487a8d973356b3ca48d97c96e9..1c72d0fe661c362ca46c44c6baeeccb411fbbd6b 100644 (file)
@@ -15,7 +15,7 @@ preinit_mount_udpu() {
 
                if [ -b "${mmcdev}p4" ]; then
                        mkdir /misc
-                       mount -t f2fs ${mmcdev}p4 /misc
+                       mount -o compress_algorithm=zstd -t f2fs ${mmcdev}p4 /misc
                        [ -f "/misc/$BACKUP_FILE" ] && {
                                echo "- Restoring configuration files -"
                                tar xzf "/misc/$BACKUP_FILE" -C /