base-files: upgrade: fix initramfs detection
[openwrt/staging/wigyori.git] / package / base-files / files / sbin / sysupgrade
index ca2eb298dccdb8053d0b69e7068691027005b976..3300d8e1ea559c5e2e696876c5f500a89c4f97e7 100755 (executable)
@@ -216,7 +216,7 @@ include /lib/upgrade
 do_save_conffiles() {
        local conf_tar="$1"
 
-       [ -z "$(rootfs_type)" ] && {
+       [ "$(rootfs_type)" = "tmpfs" ] && {
                echo "Cannot save config while running from ramdisk." >&2
                ask_bool 0 "Abort" && exit
                rm -f "$conf_tar"