[gnome-build-meta/valentindavid/pinebook-pro: 3/8] Add repartitioning script from EOS boot helper



commit dc84c4c3a29f1ef902cbd218ecad5188c8991d88
Author: Valentin David <valentin david codethink co uk>
Date:   Wed Feb 26 11:16:36 2020 +0100

    Add repartitioning script from EOS boot helper
    
    This script will resize the root partition (not the file system)
    to use the full disk. The partition will require attribute 55.
    
    This is useful when installing the an image onto a disk.

 elements/vm/eos-repartition.bst | 21 +++++++++++++++++++++
 elements/vm/initramfs.bst       |  1 +
 elements/vm/initramfs/deps.bst  |  2 ++
 3 files changed, 24 insertions(+)
---
diff --git a/elements/vm/eos-repartition.bst b/elements/vm/eos-repartition.bst
new file mode 100644
index 00000000..c71272e6
--- /dev/null
+++ b/elements/vm/eos-repartition.bst
@@ -0,0 +1,21 @@
+kind: manual
+
+sources:
+- kind: tar
+  url: github_com:endlessm/eos-boot-helper/archive/Release_3.7.7.tar.gz
+
+depends:
+- freedesktop-sdk.bst:bootstrap-import.bst
+
+variables:
+  dir: "%{indep-libdir}/dracut/modules.d/50eos-repartition"
+
+config:
+  install-commands:
+  - |
+    cd dracut/repartition
+    install -Dm755 -t "%{install-root}%{dir}" \
+        module-setup.sh \
+        endless-repartition.sh
+    install -Dm644 -t "%{install-root}%{dir}" \
+        endless-repartition.service
diff --git a/elements/vm/initramfs.bst b/elements/vm/initramfs.bst
index 2914123d..3a588001 100644
--- a/elements/vm/initramfs.bst
+++ b/elements/vm/initramfs.bst
@@ -44,6 +44,7 @@ config:
            --kver "${version}" \
            --add ostree \
            --add plymouth \
+           --add eos-repartition \
            --install 'fsck.ext4' \
            "%{install-root}/usr/lib/modules/${version}/initramfs"
 
diff --git a/elements/vm/initramfs/deps.bst b/elements/vm/initramfs/deps.bst
index 777da952..34a6fd20 100644
--- a/elements/vm/initramfs/deps.bst
+++ b/elements/vm/initramfs/deps.bst
@@ -14,3 +14,5 @@ runtime-depends:
 - core-deps/libostree.bst
 - vm/linux-firmware.bst
 - vm/plymouth-gnome-theme.bst
+- vm/eos-repartition.bst
+


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