[gnome-build-meta/valentindavid/eos-installer: 2/15] Add repartitioning script from EOS boot helper



commit e456da5fba1df0bf1d482e7da6534307c94120cf
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]