misc updates to make the GUI dd an image

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-04-18 20:45:46 -07:00
parent fe66d485fd
commit 11ecd5e794
1 changed files with 1 additions and 5 deletions

View File

@ -40,12 +40,8 @@ func dd(mybut *ui.Button) {
return return
} }
shell.Script("dd if=/home/pinebook/factory/factory-2019-01-20 of=/mnt/factory-image/factory-2019-01-20 status=progress oflag=sync");
log.Println("run rsync here")
shell.Script(`
rsync -av --progress --inplace /home/pinebook/factory/FACTORY-IMAGER-ROOTFS/ /mnt/sdcard/
umount /mnt/sdcard
`)
ui.MsgBox(mainwin, "The sdcard is finished", "") ui.MsgBox(mainwin, "The sdcard is finished", "")
} }