mvebu/uDPU: remove echo y
authorRosen Penev <rosenp@gmail.com>
Sat, 20 Aug 2022 20:56:51 +0000 (13:56 -0700)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 3 Feb 2023 10:34:20 +0000 (11:34 +0100)
It's a bit of a hack. mkfs.ext4 has an -F parameter that does the same
thing.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
target/linux/mvebu/cortexa53/base-files/lib/upgrade/uDPU.sh

index 1d65a5437bc6d39dbb7beba62836bec15cab0045..437222e08ab9d3b041085a14b7bbf7524f5374b4 100644 (file)
@@ -82,11 +82,11 @@ udpu_do_misc_prep() {
 udpu_do_initial_setup() {
        # Prepare /recovery parition
        udpu_part_prep ${emmc_dev}p2
-       mkfs.ext4 -q ${emmc_dev}p2 | echo y &> /dev/null
+       mkfs.ext4 -qF ${emmc_dev}p2 2>&1 /dev/null
 
        # Prepare /boot partition
        udpu_part_prep ${emmc_dev}p1
-       mkfs.ext4 -q ${emmc_dev}p1 | echo y &> /dev/null
+       mkfs.ext4 -qF ${emmc_dev}p1 2>&1 /dev/null
 
        # Prepare /root partition
        printf "Formating /root partition, this may take a while..\n"