card-write: Apply error-handling/logging to raspi kernel write

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
Andreas Müller
2018-10-02 17:25:46 +02:00
parent 541ead999f
commit 0dbb955a94
2 changed files with 22 additions and 41 deletions

View File

@@ -63,7 +63,7 @@ RootCardKernelWriteCallback() {
# run depmod (stolen from dempodwrapper)
sys_map=`realpath ${DeployFileDir}/../../../pkgdata/${Machine}/kernel-depmod/System.map-$kernel_abi_ver`
ExecEx "depmod -a -b $tmpdir -F $sys_map $kernel_abi_ver" "\nRun depmod on modules..." "Run done" "Run failed"
# unmount boot partition
# unmount rootfs
ExecEx "sleep 1 && umount ${DevicePath}2" "\nUnmount rootfs..." "Unmount done" "Unmount failed"
rm -rf $tmpdir