[Voyage-linux] [PATCH 3/4] copyfiles.sh: add sync - may not be needed/useful

Jim Cromie (spam-protected)
Sun Sep 23 01:19:17 HKT 2012


add a sync near end of copyfiles.  This should be harmless.  Its not
clear that its entirely helpful however, at least on machines using
udev & udisks; to get the CF slot's LED to turn off, I have to unmount
using the GUI, at which point I get a popup saying effectively
"writing data to device".

Signed-off-by: Jim Cromie <jim.cromie at gmail.com>
---
 usr/local/sbin/copyfiles.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/usr/local/sbin/copyfiles.sh b/usr/local/sbin/copyfiles.sh
index b8e73b7..9c039e6 100755
--- a/usr/local/sbin/copyfiles.sh
+++ b/usr/local/sbin/copyfiles.sh
@@ -101,5 +101,6 @@ reconfig_resolvconf "$TARGET_MOUNT"
 update_hosts "$TARGET_MOUNT"
 ${EXECDIR}/setboot.sh
 write_config "$TARGET_MOUNT/etc/voyage.conf" "$VOYAGE_CONF_LIST"
+sync
 umount $TARGET_MOUNT
 echo "copyfiles.sh script completed" >&2
-- 
1.7.11.4





More information about the Voyage-linux mailing list