From 6f61d8511eccf2736fd7f430aff2c98c595fa4b9 Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Sun, 1 Jan 2017 01:06:37 +0800 Subject: base-files: export x86 platform upgrade functions to common.sh Signed-off-by: Yousong Zhou --- target/linux/x86/base-files/lib/preinit/79_move_config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'target/linux/x86/base-files/lib/preinit') diff --git a/target/linux/x86/base-files/lib/preinit/79_move_config b/target/linux/x86/base-files/lib/preinit/79_move_config index 37954f0236..143ca5147b 100644 --- a/target/linux/x86/base-files/lib/preinit/79_move_config +++ b/target/linux/x86/base-files/lib/preinit/79_move_config @@ -4,9 +4,9 @@ move_config() { local partdev - . /lib/upgrade/platform.sh + . /lib/upgrade/common.sh - if platform_export_bootdevice && platform_export_partdevice partdev 1; then + if export_bootdevice && export_partdevice partdev 1; then if mount -t ext4 -o rw,noatime "/dev/$partdev" /mnt; then if [ -f /mnt/sysupgrade.tgz ]; then mv -f /mnt/sysupgrade.tgz / -- cgit v1.2.3