aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Priouzeau <christophe.priouzeau@st.com>2019-08-14 11:28:08 +0200
committerChristophe Priouzeau <christophe.priouzeau@linaro.org>2019-08-26 15:28:15 +0200
commitaf94f03ab3a647c26285f9679f4a5eddc132388d (patch)
tree639aa88912a12e29de391f7e90dde7fd62408297
parent3cae28c944dd296ed668cc64b9f4d402ba3c80e4 (diff)
downloadfai-af94f03ab3a647c26285f9679f4a5eddc132388d.tar.gz
LEDGE: add script to extract rootfs as ext4
Change-Id: If9a30e9dc008199e7cc1747df56187281e990006 Signed-off-by: Christophe Priouzeau <christophe.priouzeau@linaro.org>
-rw-r--r--disk_config/IOT4
-rwxr-xr-xscripts/LEDGE/90-extractrootfs9
2 files changed, 9 insertions, 4 deletions
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 -