bcm27xx: use PARTUUID for root in cmdline
[openwrt/staging/mans0n.git] / target / linux / bcm27xx / base-files / lib / preinit / 79_move_config
index db5bf93b626b00bc3c6efcce75571d78d0c8ca24..fed5278130589ac9a0fb2bd2d0ea989d3f76cec4 100644 (file)
@@ -16,7 +16,10 @@ move_config() {
                insmod vfat
                mkdir -p /boot
                mount -t vfat -o rw,noatime /dev/$partdev /boot
-               [ -f "/boot/$BACKUP_FILE" ] && mv -f "/boot/$BACKUP_FILE" /
+               if [ -f "/boot/$BACKUP_FILE" ]; then
+                       mv -f "/boot/$BACKUP_FILE" /
+                       export BCM27XX_SET_ROOT_PART=1
+               fi
        fi
 }