[gnome-build-meta/jjardon/robjh/icicle: 1/4] Add iso.tarball.bst




commit b07393bce98ab47cea265155ebd293fa341345f2
Author: Robin J. Heywood <robin heywood codethink co uk>
Date:   Tue Oct 5 23:10:37 2021 +0100

    Add iso.tarball.bst
    
    Create an element which outputs a tarball of the root filesystem.
    This element simply calls the prepare-image script on the iso/filesystem.bst
    element, before wrapping it up in a tarball.

 elements/iso/tarball.bst | 49 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)
---
diff --git a/elements/iso/tarball.bst b/elements/iso/tarball.bst
new file mode 100644
index 000000000..a89fe40ce
--- /dev/null
+++ b/elements/iso/tarball.bst
@@ -0,0 +1,49 @@
+kind: script
+
+build-depends:
+- iso/iso-build-deps.bst
+- iso/signed-image-only.bst
+- iso/filesystem.bst
+- iso/initial-scripts.bst
+- iso/initramfs.bst
+
+variables:
+  install-root: /build/install-root
+  uuidnamespace: aea54278-2587-4075-ae67-8688ace4ce3d
+
+config:
+  layout:
+  - element: ''
+    destination: /tmp
+  - element: ''
+    destination: /build
+  - element: iso/iso-build-deps.bst
+    destination: /
+  - element: iso/filesystem.bst
+    destination: /sysroot
+  - element: iso/initramfs.bst
+    destination: /sysroot/efi
+  - element: iso/initial-scripts.bst
+    destination: /
+  - element: iso/signed-image-only.bst
+    destination: /sysroot/eosimages
+
+  commands:
+  - mkdir -p /build/images
+  - mkdir -p /build/install-root
+  - mkdir -p /build/stage-1
+  - mkdir -p /build/stage-2
+  - mkdir -p /build/sysroot-stage-2
+
+  - |
+    prepare-image.sh \
+       --sysroot /sysroot \
+       --seed "%{uuidnamespace}" \
+       --rootsource LABEL="%{installer-volume-id}" \
+       --rootfstype iso9660 \
+       --noboot >/dev/null
+
+  - |
+    cd /sysroot
+    tar czvf %{install-root}/rootfs.tar.gz .
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]