[first boot] sync file system after moving/copying files (#3550)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
This commit is contained in:
Ying Xie 2019-10-02 13:58:34 -07:00 committed by GitHub
parent cf0465bf53
commit d5262a3621
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -242,6 +242,8 @@ if [ -f $FIRST_BOOT_FILE ]; then
dpkg -i /host/image-$SONIC_VERSION/platform/$platform/*.deb dpkg -i /host/image-$SONIC_VERSION/platform/$platform/*.deb
fi fi
sync
# If the unit booted into SONiC from another NOS's grub, # If the unit booted into SONiC from another NOS's grub,
# we now install a grub for SONiC. # we now install a grub for SONiC.
if [ -n "$onie_platform" ] && [ -n "$migration" ]; then if [ -n "$onie_platform" ] && [ -n "$migration" ]; then

View File

@ -33,6 +33,8 @@ function copy_config_files_and_directories()
logger "Missing SONiC configuration ${file_dir} ..." logger "Missing SONiC configuration ${file_dir} ..."
fi fi
done done
sync
} }
function check_system_warm_boot() function check_system_warm_boot()