Harald Hoyer 2d3fda
From e1619ee151b20549dc5c6112a5715df58db7b108 Mon Sep 17 00:00:00 2001
Harald Hoyer 2d3fda
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 2d3fda
Date: Fri, 6 Jul 2012 14:06:05 +0200
Harald Hoyer 2d3fda
Subject: [PATCH] fixed bash/sh requirements
Harald Hoyer 2d3fda
Harald Hoyer 2d3fda
---
Harald Hoyer 2d3fda
 modules.d/90btrfs/btrfs_finished.sh     |    2 +-
Harald Hoyer 2d3fda
 modules.d/90btrfs/btrfs_timeout.sh      |    2 +-
Harald Hoyer 2d3fda
 modules.d/90livenet/fetch-liveupdate.sh |    2 +-
Harald Hoyer 2d3fda
 modules.d/90livenet/livenetroot.sh      |    2 +-
Harald Hoyer 2d3fda
 modules.d/90livenet/module-setup.sh     |    2 +-
Harald Hoyer 2d3fda
 modules.d/99img-lib/module-setup.sh     |    3 +--
Harald Hoyer 2d3fda
 6 files changed, 6 insertions(+), 7 deletions(-)
Harald Hoyer 2d3fda
Harald Hoyer 2d3fda
diff --git a/modules.d/90btrfs/btrfs_finished.sh b/modules.d/90btrfs/btrfs_finished.sh
Harald Hoyer 2d3fda
index 7e87dec..5e7691a 100755
Harald Hoyer 2d3fda
--- a/modules.d/90btrfs/btrfs_finished.sh
Harald Hoyer 2d3fda
+++ b/modules.d/90btrfs/btrfs_finished.sh
Harald Hoyer 2d3fda
@@ -1,4 +1,4 @@
Harald Hoyer 2d3fda
-#!/bin/bash
Harald Hoyer 2d3fda
+#!/bin/sh
Harald Hoyer 2d3fda
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer 2d3fda
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer 2d3fda
 
Harald Hoyer 2d3fda
diff --git a/modules.d/90btrfs/btrfs_timeout.sh b/modules.d/90btrfs/btrfs_timeout.sh
Harald Hoyer 2d3fda
index 84f7997..cd64443 100755
Harald Hoyer 2d3fda
--- a/modules.d/90btrfs/btrfs_timeout.sh
Harald Hoyer 2d3fda
+++ b/modules.d/90btrfs/btrfs_timeout.sh
Harald Hoyer 2d3fda
@@ -1,4 +1,4 @@
Harald Hoyer 2d3fda
-#!/bin/bash
Harald Hoyer 2d3fda
+#!/bin/sh
Harald Hoyer 2d3fda
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer 2d3fda
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer 2d3fda
 
Harald Hoyer 2d3fda
diff --git a/modules.d/90livenet/fetch-liveupdate.sh b/modules.d/90livenet/fetch-liveupdate.sh
Harald Hoyer 2d3fda
index 88aa2b1..024feaa 100755
Harald Hoyer 2d3fda
--- a/modules.d/90livenet/fetch-liveupdate.sh
Harald Hoyer 2d3fda
+++ b/modules.d/90livenet/fetch-liveupdate.sh
Harald Hoyer 2d3fda
@@ -1,4 +1,4 @@
Harald Hoyer 2d3fda
-#!/bin/sh
Harald Hoyer 2d3fda
+#!/bin/bash
Harald Hoyer 2d3fda
 # fetch-liveupdate - fetch an update image for dmsquash-live media.
Harald Hoyer 2d3fda
 # this gets called by the "initqueue/online" hook for each network interface
Harald Hoyer 2d3fda
 # that comes online.
Harald Hoyer 2d3fda
diff --git a/modules.d/90livenet/livenetroot.sh b/modules.d/90livenet/livenetroot.sh
Harald Hoyer 2d3fda
index 617be62..1bbee55 100755
Harald Hoyer 2d3fda
--- a/modules.d/90livenet/livenetroot.sh
Harald Hoyer 2d3fda
+++ b/modules.d/90livenet/livenetroot.sh
Harald Hoyer 2d3fda
@@ -1,4 +1,4 @@
Harald Hoyer 2d3fda
-#!/bin/bash
Harald Hoyer 2d3fda
+#!/bin/sh
Harald Hoyer 2d3fda
 # livenetroot - fetch a live image from the network and run it
Harald Hoyer 2d3fda
 
Harald Hoyer 2d3fda
 type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
Harald Hoyer 2d3fda
diff --git a/modules.d/90livenet/module-setup.sh b/modules.d/90livenet/module-setup.sh
Harald Hoyer 2d3fda
index 265f29e..4249655 100755
Harald Hoyer 2d3fda
--- a/modules.d/90livenet/module-setup.sh
Harald Hoyer 2d3fda
+++ b/modules.d/90livenet/module-setup.sh
Harald Hoyer 2d3fda
@@ -6,7 +6,7 @@ check() {
Harald Hoyer 2d3fda
 }
Harald Hoyer 2d3fda
 
Harald Hoyer 2d3fda
 depends() {
Harald Hoyer 2d3fda
-    echo network url-lib dmsquash-live
Harald Hoyer 2d3fda
+    echo network url-lib dmsquash-live img-lib
Harald Hoyer 2d3fda
     return 0
Harald Hoyer 2d3fda
 }
Harald Hoyer 2d3fda
 
Harald Hoyer 2d3fda
diff --git a/modules.d/99img-lib/module-setup.sh b/modules.d/99img-lib/module-setup.sh
Harald Hoyer 2d3fda
index 9ff5d7c..ebd0436 100755
Harald Hoyer 2d3fda
--- a/modules.d/99img-lib/module-setup.sh
Harald Hoyer 2d3fda
+++ b/modules.d/99img-lib/module-setup.sh
Harald Hoyer 2d3fda
@@ -13,8 +13,7 @@ depends() {
Harald Hoyer 2d3fda
 }
Harald Hoyer 2d3fda
 
Harald Hoyer 2d3fda
 install() {
Harald Hoyer 2d3fda
-    # NOTE/TODO: we require bash, but I don't know how to specify that..
Harald Hoyer 2d3fda
-    dracut_install tar gzip dd
Harald Hoyer 2d3fda
+    dracut_install tar gzip dd bash
Harald Hoyer 2d3fda
     # TODO: make this conditional on a cmdline flag / config option
Harald Hoyer 2d3fda
     dracut_install -o cpio xz bzip2
Harald Hoyer 2d3fda
     inst_simple "$moddir/img-lib.sh" "/lib/img-lib.sh"