[first boot] sync file system after moving/copying files (#3550)
Signed-off-by: Ying Xie <ying.xie@microsoft.com>
This commit is contained in:
parent
cf0465bf53
commit
d5262a3621
@ -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
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user