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



commit 979c4c429629da41195be3aa815a39e1ad7cfcc5
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 29872db7..b091fd1d 100644
--- a/elements/vm/initramfs/deps.bst
+++ b/elements/vm/initramfs/deps.bst
@@ -13,3 +13,5 @@ runtime-depends:
 - freedesktop-sdk.bst:components/pkg-config.bst
 - core-deps/ostree.bst
 - vm/plymouth-gnome-theme.bst
+- vm/eos-repartition.bst
+


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