From: Maarten Vanraes <maarten.vanraes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: patches
Date: Wed, 14 Jul 2010 02:05:35 +0200 [thread overview]
Message-ID: <201007140205.35944.maarten.vanraes@gmail.com> (raw)
[-- Attachment #1: Type: Text/Plain, Size: 183 bytes --]
Hi,
Here are some patches, some that were used as patches in the mandriva builds,
and a first one from me, to fix nfs hostonly on chrooted installs.
Kind regards,
Maarten Vanraes
[-- Attachment #2: 0001-conffile-before-confdir.patch --]
[-- Type: text/x-patch, Size: 1188 bytes --]
From 25419eb164e842499d391bb396f71ddede9ad0ed Mon Sep 17 00:00:00 2001
From: Andrey Borzenkov <arvidjaar-JGs/UdohzUI@public.gmane.org>
Date: Wed, 14 Jul 2010 01:30:16 +0200
Subject: [PATCH 1/3] conffile before confdir
conffile should be sourced before confdir
Signed-off-by: Maarten Vanraes <maarten.vanraes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
dracut | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dracut b/dracut
index 6b590f5..d21736b 100755
--- a/dracut
+++ b/dracut
@@ -130,6 +130,9 @@ if [[ ! -d $confdir ]]; then
[[ $allowlocal ]] && confdir="$dracutbasedir/dracut.conf.d"
fi
+# source our config file
+[[ -f $conffile ]] && . "$conffile"
+
# source our config dir
if [ "$confdir" ] && [ -d "$confdir" ]; then
for f in "$confdir"/*.conf; do
@@ -137,9 +140,6 @@ if [ "$confdir" ] && [ -d "$confdir" ]; then
done
fi
-# source our config file
-[[ -f $conffile ]] && . "$conffile"
-
# these optins add to the stuff in the config file
[[ $add_dracutmodules_l ]] && add_dracutmodules+=" $add_dracutmodules_l"
[[ $add_drivers_l ]] && add_drivers+=" $add_drivers_l"
--
1.6.4.4
[-- Attachment #3: 0002-bootchartd-support.patch --]
[-- Type: text/x-patch, Size: 1425 bytes --]
From 325eac162cb35d76e50633796b086ab3a0dcd475 Mon Sep 17 00:00:00 2001
From: Frederic Crozat <fcrozat-4qZELD6FgxhWk0Htik3J/w@public.gmane.org>
Date: Wed, 14 Jul 2010 01:50:55 +0200
Subject: [PATCH 2/3] bootchartd support
add preliminary bootchard support
Signed-off-by: Maarten Vanraes <maarten.vanraes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
modules.d/00bootchartd/check | 2 ++
modules.d/00bootchartd/install | 15 +++++++++++++++
2 files changed, 17 insertions(+), 0 deletions(-)
create mode 100644 modules.d/00bootchartd/check
create mode 100644 modules.d/00bootchartd/install
diff --git a/modules.d/00bootchartd/check b/modules.d/00bootchartd/check
new file mode 100644
index 0000000..b691465
--- /dev/null
+++ b/modules.d/00bootchartd/check
@@ -0,0 +1,2 @@
+#!/bin/sh
+[ -x /sbin/bootchartd ]
diff --git a/modules.d/00bootchartd/install b/modules.d/00bootchartd/install
new file mode 100644
index 0000000..ff29de0
--- /dev/null
+++ b/modules.d/00bootchartd/install
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+inst /sbin/bootchartd
+inst /bin/bash
+ln -s /init "${initdir}/sbin/init"
+mkdir -p /lib/bootchart/
+inst /lib/bootchart/bootchart-collector
+inst /etc/bootchartd.conf
+inst /sbin/accton
+inst /usr/bin/pkill /bin/pkill
+inst /bin/echo
+inst /bin/grep
+inst /bin/usleep
+inst /usr/bin/[ /bin/[
+mknod -m 0666 "${initdir}/dev/null" c 1 3
--
1.6.4.4
[-- Attachment #4: 0003-fix-hostonly-check.patch --]
[-- Type: text/x-patch, Size: 1045 bytes --]
From 4a364127faed338ac74e169a077373bd28eb3b41 Mon Sep 17 00:00:00 2001
From: Maarten Vanraes <maarten.vanraes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Date: Wed, 14 Jul 2010 01:57:19 +0200
Subject: [PATCH 3/3] fix hostonly check
this bugfix fixes chrooted hostonly check by checking fstab instead of
mount
Signed-off-by: Maarten Vanraes <maarten.vanraes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
modules.d/95nfs/check | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules.d/95nfs/check b/modules.d/95nfs/check
index f72aaae..3dad486 100755
--- a/modules.d/95nfs/check
+++ b/modules.d/95nfs/check
@@ -4,7 +4,7 @@
# If hostonly was requested, fail the check if we are not actually
# booting from root.
-[ "$1" = "-h" ] && ! egrep -q '/ nfs[34 ]' /proc/mounts && exit 1
+[ "$1" = "-h" ] && ! egrep -q '\s/\s+nfs[34]?\s' /etc/fstab && exit 1
# If our prerequisites are not met, fail anyways.
which rpcbind >/dev/null 2>&1 || which portmap >/dev/null 2>&1 || exit 1
--
1.6.4.4
next reply other threads:[~2010-07-14 0:05 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-14 0:05 Maarten Vanraes [this message]
[not found] ` <201007140205.35944.maarten.vanraes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-07-21 11:33 ` patches Harald Hoyer
[not found] ` <4C46DAF1.1090603-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-07-21 15:18 ` patches Maarten Vanraes
[not found] ` <201007211718.28574.maarten.vanraes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-07-26 7:42 ` patches Maarten Vanraes
2010-07-21 11:41 ` patches Harald Hoyer
[not found] ` <4C46DCD0.3020608-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-07-21 15:03 ` patches Maarten Vanraes
[not found] ` <201007211703.36797.maarten.vanraes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-07-21 15:13 ` patches Harald Hoyer
[not found] ` <4C470EAD.705-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-07-21 15:20 ` patches Maarten Vanraes
2011-01-08 6:41 ` [PATCH] load dracut.conf.d before dracut.conf (was: Re: patches) Anssi Hannula
[not found] ` <4D280724.8050405-4qZELD6Fgxhg9hUCZPvPmw@public.gmane.org>
2011-02-18 10:15 ` [PATCH] load dracut.conf.d before dracut.conf Harald Hoyer
[not found] ` <4D5E46DC.4020303-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-02-20 17:29 ` Anssi Hannula
[not found] ` <4D614F8D.10505-4qZELD6Fgxhg9hUCZPvPmw@public.gmane.org>
2011-02-25 12:43 ` Harald Hoyer
-- strict thread matches above, loose matches on Subject: below --
2010-07-26 7:58 patches Maarten Vanraes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201007140205.35944.maarten.vanraes@gmail.com \
--to=maarten.vanraes-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox