From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D5EB1138200 for ; Mon, 3 Jun 2013 23:49:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4BA1CE087F; Mon, 3 Jun 2013 23:49:06 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D903FE0830 for ; Mon, 3 Jun 2013 23:49:05 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0117D33DFE1 for ; Mon, 3 Jun 2013 23:49:05 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id AE20CE545C for ; Mon, 3 Jun 2013 23:49:03 +0000 (UTC) From: "Richard Yao" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Richard Yao" Message-ID: <1370303300.f9d68e00da0f44d2a0f9ebad2e3c706f3d9769c1.ryao@gentoo> Subject: [gentoo-commits] proj/genkernel:ryao commit in: /, defaults/ X-VCS-Repository: proj/genkernel X-VCS-Files: defaults/linuxrc gen_initramfs.sh X-VCS-Directories: / defaults/ X-VCS-Committer: ryao X-VCS-Committer-Name: Richard Yao X-VCS-Revision: f9d68e00da0f44d2a0f9ebad2e3c706f3d9769c1 X-VCS-Branch: ryao Date: Mon, 3 Jun 2013 23:49:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1142ed78-ddbf-486a-ae3f-fe625422d324 X-Archives-Hash: 438dd71bb726f235ab8a9e212aa08ad4 commit: f9d68e00da0f44d2a0f9ebad2e3c706f3d9769c1 Author: Richard Yao gentoo org> AuthorDate: Mon Jun 3 23:40:28 2013 +0000 Commit: Richard Yao gentoo org> CommitDate: Mon Jun 3 23:48:20 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=f9d68e00 Fix /etc/modprobe.d regression Commit 3a054014e880e5b1ff28e3d87767c45a073da6b5 replaced our modprobe with busybox's modprobe, which broke the code responsible for making options from /etc/modprobe.d work. We replace the old mechanism with a new one that copies /etc/modprobe.d to correct that. Signed-off-by: Richard Yao gentoo.org> --- defaults/linuxrc | 7 ------- gen_initramfs.sh | 20 ++------------------ 2 files changed, 2 insertions(+), 25 deletions(-) diff --git a/defaults/linuxrc b/defaults/linuxrc index 4bbe5e2..9ea305b 100644 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -262,13 +262,6 @@ do nounionfs) USE_UNIONFS_NORMAL=0 ;; - *=*) - case "${x%%=*}" in - *.*) - echo "${x#*.}" >> "/etc/module_options/${x%%.*}.conf" - ;; - esac - ;; esac done diff --git a/gen_initramfs.sh b/gen_initramfs.sh index 784c0cc..427ffad 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -625,24 +625,8 @@ append_modprobed() { rm -r "${TDIR}" fi - mkdir -p "${TDIR}/etc/module_options/" - - # Load module parameters - for dir in $(find "${MODPROBEDIR}"/*) - do - while read x - do - case "${x}" in - options*) - module_name="$(echo "$x" | cut -d ' ' -f 2)" - [ "${module_name}" != "$(echo)" ] || continue - module_options="$(echo "$x" | cut -d ' ' -f 3-)" - [ "${module_options}" != "$(echo)" ] || continue - echo "${module_options}" >> "${TDIR}/etc/module_options/${module_name}.conf" - ;; - esac - done < "${dir}" - done + mkdir -p "${TDIR}/etc" + cp -r "/etc/modprobe.d" "${TDIR}/etc/modprobe.d" cd "${TDIR}" log_future_cpio_content