From: Jan Rękorajski Date: Wed, 21 Mar 2012 22:54:46 +0000 (+0000) Subject: - dracut doesn't play with mksh which is /bin/sh in PLD, so force bash X-Git-Tag: auto/th/dracut-017-1~2 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=d73ed32fb29b7d97397c7eeb0cd8e07965b0337c;p=packages%2Fdracut.git - dracut doesn't play with mksh which is /bin/sh in PLD, so force bash Changed files: bash-sh.patch -> 1.1 dracut.spec -> 1.8 --- diff --git a/bash-sh.patch b/bash-sh.patch new file mode 100644 index 0000000..6edda11 --- /dev/null +++ b/bash-sh.patch @@ -0,0 +1,21 @@ +--- /dev/null 2012-03-21 19:30:19.123295831 +0100 ++++ dracut-017/modules.d/01bash/module-setup.sh 2012-03-21 23:46:14.717134386 +0100 +@@ -0,0 +1,18 @@ ++#!/bin/bash ++# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- ++# ex: ts=8 sw=4 sts=4 et filetype=sh ++ ++check() { ++ return 0 ++} ++ ++depends() { ++ return 0 ++} ++ ++install() { ++ # If another shell is already installed, do not use bash ++ [[ -x $initdir/bin/sh ]] && return ++ ++ inst /bin/bash && ln -sf bash "${initdir}/bin/sh" ++} diff --git a/dracut.spec b/dracut.spec index 6f3f037..d04afaf 100644 --- a/dracut.spec +++ b/dracut.spec @@ -1,7 +1,7 @@ Summary: Initramfs generator using udev Name: dracut Version: 017 -Release: 0.3 +Release: 0.5 License: GPL v2+ Group: Base Source0: ftp://www.kernel.org/pub/linux/utils/boot/dracut/%{name}-%{version}.tar.xz @@ -9,6 +9,7 @@ Source0: ftp://www.kernel.org/pub/linux/utils/boot/dracut/%{name}-%{version}.tar Source1: pld.conf Patch0: no-rh.patch Patch1: create-target-dir-for-symlink.patch +Patch2: bash-sh.patch URL: https://dracut.wiki.kernel.org/ BuildRequires: docbook-style-xsl BuildRequires: libxslt-progs @@ -95,6 +96,7 @@ configuration. %setup -q %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build %{__make} @@ -148,6 +150,8 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{dracutlibdir}/modules.d/00bootchart/*.sh %dir %{dracutlibdir}/modules.d/00dash %attr(755,root,root) %{dracutlibdir}/modules.d/00dash/*.sh +%dir %{dracutlibdir}/modules.d/01bash +%attr(755,root,root) %{dracutlibdir}/modules.d/01bash/*.sh %dir %{dracutlibdir}/modules.d/05busybox %attr(755,root,root) %{dracutlibdir}/modules.d/05busybox/*.sh %dir %{dracutlibdir}/modules.d/10i18n