mvebu: remove fs declaration in mount commands
authorTomasz Maciej Nowak <tomek_n@o2.pl>
Wed, 24 Jan 2018 23:04:56 +0000 (00:04 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 2 Mar 2018 20:33:08 +0000 (21:33 +0100)
Allows to have other file system for boot partition without breaking
sysupgrade.

Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
target/linux/mvebu/base-files/lib/preinit/79_move_config
target/linux/mvebu/base-files/lib/upgrade/clearfog.sh

index b0ee62a8092dc7437a25b23489b6087aef934e9b..1735ad88497a45e2f8be7a008c1d4ffc375d863f 100644 (file)
@@ -10,8 +10,9 @@ move_config() {
                insmod fat
                insmod vfat
                mkdir -p /boot
-               mount -t vfat -o rw,noatime $BOOTPART /boot
+               mount -o rw,noatime $BOOTPART /boot
                [ -f /boot/sysupgrade.tgz ] && mv -f /boot/sysupgrade.tgz /
+               umount /boot
        fi
 }
 
index 5388b221983ec607ebd20d64e392c4e53b1cc411..b6dbde845820af00cfe1a82e53b25c6709648b75 100644 (file)
@@ -25,7 +25,7 @@ platform_do_upgrade_clearfog() {
 
 platform_copy_config_clearfog() {
        mkdir -p /boot
-       [ -f /boot/kernel.img ] || mount -t vfat -o rw,noatime /dev/mmcblk0p1 /boot
+       [ -f /boot/kernel.img ] || mount -o rw,noatime /dev/mmcblk0p1 /boot
        cp -af "$CONF_TAR" /boot/
        sync
        umount /boot