[bug#74837,v3,1/2] packages: cloud-utils: Add missing growpart programs to path.

Message ID 449186592c56a84bd3bb02e26464fbcf8adea3d6.1734211103.git.richard@freakingpenguin.com
State New
Headers
Series resize-file-system-service |

Commit Message

Richard Sent Dec. 14, 2024, 9:18 p.m. UTC
  This ensures growpart can run in environments that may not have a PATH
variable set.

* gnu/packages/admin.scm (cloud-utils): Augment growpart PATH with necessary
programs.

Change-Id: Idf0ca9e14e4c9d82208fbf715dd0b235cd5a371b
---
 gnu/packages/admin.scm | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)
  

Patch

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index b1889ceea0..d39bc5adc5 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -581,12 +581,21 @@  (define-public cloud-utils
                    ,(map dirname
                          (map (cut search-input-file inputs <>)
                               (list "bin/readlink"
-                                    "sbin/sfdisk")))))))))))
+                                    "sbin/sfdisk"
+                                    "bin/sed"
+                                    "bin/grep"
+                                    "bin/awk"
+                                    "bin/udevadm"
+                                    "bin/flock")))))))))))
     (inputs
      (list bash-minimal                 ;for wrap-program
-           coreutils                    ;for readlink
+           coreutils                    ;for readlink and cat
+           sed                          ;growpart
+           grep                         ;growpart
+           gawk                         ;awk for growpart
+           eudev                        ;udevadm for growpart
            python
-           util-linux))                 ;sfdisk for growpart
+           util-linux))                 ;sfdisk, flock, partx, blkid for growpart
     (home-page "https://launchpad.net/cloud-utils")
     (synopsis "Set of utilities for cloud computing environments")
     (description