treewide: fix initramfs detection
authorRobert Marko <robimarko@gmail.com>
Sun, 20 Dec 2020 17:02:54 +0000 (18:02 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 20 Dec 2020 17:14:56 +0000 (17:14 +0000)
commit7a181a65f2e5d19e379cebbb980aa2f2985709e2
treec88628d4a8c24e6fab86c6728085ec7f7574863f
parent0cf3c5dd7257dff1c87b61c5e53e5b1787ab7015
treewide: fix initramfs detection

Commit "initramfs: switch to tmpfs to fix ujail" switched initramfs to
now use tmpfs, it causes $(rootfs_type) to now return tmpfs when
running initramfs image instead of being empty.

This broke initramfs detection which is required so that when installing
on MikroTik devices firmware partition would first get erased fully
before writing.

So, lets test for $(rootfs_type) returning "tmpfs" instead.

Fixes: 7fd3c68 ("initramfs: switch to tmpfs to fix ujail)
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ath79/mikrotik/base-files/lib/upgrade/platform.sh
target/linux/ramips/mt7621/base-files/lib/upgrade/platform.sh