|
@@ -51,11 +51,18 @@ if [ -e output/images/rootfs.tar ] ; then
|
51
|
51
|
|
52
|
52
|
echo Copying root filesystem
|
53
|
53
|
sudo tar xfp output/images/rootfs.tar -C /media/rootfs
|
|
54
|
+
|
|
55
|
+ echo Synchronising changes to disk
|
|
56
|
+ sudo sync
|
|
57
|
+
|
|
58
|
+ echo Unmounting root filesystem
|
|
59
|
+ sudo umount /media/rootfs
|
|
60
|
+ sudo rm -rf /media/rootfs
|
54
|
61
|
else
|
55
|
62
|
echo Writing root filesystem
|
56
|
63
|
sudo dd if=output/images/rootfs.ext2 of="$1"2 bs=512
|
57
|
|
-fi
|
58
|
64
|
|
59
|
|
-echo Synchronising changes to disk
|
60
|
|
-sudo sync
|
|
65
|
+ echo Synchronising changes to disk
|
|
66
|
+ sudo sync
|
|
67
|
+fi
|
61
|
68
|
|