From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Daniel Drake <dsd-2X9k7bc8m7Mdnm+yROfE0A@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] Allow fstab-based remount to be controlled by modules
Date: Wed, 10 Nov 2010 15:32:06 +0100 [thread overview]
Message-ID: <4CDAACE6.8040108@redhat.com> (raw)
In-Reply-To: <20101108194128.EBFEB9D401B-k/4jFdqg8LLlyo9zxV8I99HuzzzSOjJt@public.gmane.org>
On 11/08/2010 08:41 PM, Daniel Drake wrote:
> OLPC would like to be able to disable this behaviour through
> a custom dracut module. Add a "no_fstab_remount" flag which can be
> set by modules that want to disable this functionality.
>
> (Background: having the correct rootfs info in /etc/fstab is a bit of a
> challenge for OLPC, because this info is not known at build time.)
> ---
> modules.d/95rootfs-block/mount-root.sh | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/modules.d/95rootfs-block/mount-root.sh b/modules.d/95rootfs-block/mount-root.sh
> index ff64209..7602731 100755
> --- a/modules.d/95rootfs-block/mount-root.sh
> +++ b/modules.d/95rootfs-block/mount-root.sh
> @@ -73,6 +73,7 @@ if [ -n "$root" -a -z "${root%%block:*}" ]; then
> rootopts=
> if getargbool 1 rd.fstab -n rd_NO_FSTAB \
> && ! getarg rootflags \
> +&& [ -z "$no_fstab_remount" ] \
> && [ -f "$NEWROOT/etc/fstab" ] \
> && ! [ -L "$NEWROOT/etc/fstab" ]; then
> # if $NEWROOT/etc/fstab contains special mount options for
Why don't you reuse rd.fstab then? You could add preset kernel cmdline options
in /etc/cmdline in the initramfs.
Just add for your dracut module in install:
mkdir -p ${initdir}/etc
echo " rd.fstab=0 " >> ${initdir}/etc/cmdline
next prev parent reply other threads:[~2010-11-10 14:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-08 19:41 [PATCH] Allow fstab-based remount to be controlled by modules Daniel Drake
[not found] ` <20101108194128.EBFEB9D401B-k/4jFdqg8LLlyo9zxV8I99HuzzzSOjJt@public.gmane.org>
2010-11-10 14:32 ` Harald Hoyer [this message]
[not found] ` <4CDAACE6.8040108-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-11-10 18:55 ` Daniel Drake
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=4CDAACE6.8040108@redhat.com \
--to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=dsd-2X9k7bc8m7Mdnm+yROfE0A@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.