LEDGE: add script to extract rootfs as ext4

Change-Id: If9a30e9dc008199e7cc1747df56187281e990006
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@linaro.org>
diff --git a/disk_config/IOT b/disk_config/IOT
deleted file mode 100644
index a3d2cd4..0000000
--- a/disk_config/IOT
+++ /dev/null
@@ -1,4 +0,0 @@
-disk_config disk1 disklabel:gpt fstabkey:uuid bootable:2
-primary /boot/uboot 64 vfat rw,nofail createopts="-n BOOT"
-primary / 2G- ext4 rw createopts="-L rootfs-sd"
-
diff --git a/scripts/LEDGE/90-extractrootfs b/scripts/LEDGE/90-extractrootfs
new file mode 100755
index 0000000..752d55d
--- /dev/null
+++ b/scripts/LEDGE/90-extractrootfs
@@ -0,0 +1,9 @@
+#!/bin/bash
+set -x
+mkdir -p "${FAI}/out/"
+
+cd $target/
+
+sudo tar cfp ${FAI}/out/rootfs-ledge-debian.tar --one-file-system --xattrs .
+
+cd -