From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 06/13] package/skeleton-init-openrc: add support to remount rootfs as rw
Date: Sat, 18 May 2019 23:22:40 +0200 [thread overview]
Message-ID: <20190518232240.4f92819f@windsurf> (raw)
In-Reply-To: <20190512195550.24457-6-michal.lyszczek@bofc.pl>
Hello,
On Sun, 12 May 2019 21:55:43 +0200
Micha? ?yszczek <michal.lyszczek@bofc.pl> wrote:
> diff --git a/package/skeleton-init-openrc/skeleton-init-sysv.mk b/package/skeleton-init-openrc/skeleton-init-sysv.mk
> index 5ee2192093..bbe80071ae 100644
> --- a/package/skeleton-init-openrc/skeleton-init-sysv.mk
> +++ b/package/skeleton-init-openrc/skeleton-init-sysv.mk
> @@ -15,8 +15,23 @@ SKELETON_INIT_OPENRC_DEPENDENCIES = skeleton-init-common
>
> SKELETON_INIT_OPENRC_PROVIDES = skeleton
>
> +ifeq ($(BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW),y)
> +# Comment /dev/root entry in fstab. When openrc does not find fstab entry for
> +# "/", it will try to remount "/" as "rw".
> +define SKELETON_INIT_OPENRC_ROOT_RO_OR_RW
> + $(SED) '/^ *\/dev\/root.*$$/s~^~#~' $(TARGET_DIR)/etc/fstab
> +endef
> +else
> +# Uncomment /dev/root entry in fstab which has "ro" option so openrc notices
> +# it and doesn't remount root to rw.
> +define SKELETON_INIT_OPENRC_ROOT_RO_OR_RW
> + $(SED) '/^# *\/dev\/root.*$$/s~^#\+~~' $(TARGET_DIR)/etc/fstab
> +endef
> +endif # BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW
Why are you handling the ro/rw rootfs topic from skeleton-init-sysv.mk,
but the getty topic is handled from openrc.mk (in PATCH 04/13). It
doesn't seem very consistent.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2019-05-18 21:22 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-12 19:55 [Buildroot] [PATCH v2 01/13] package/openrc: new package (v0.41.2) Michał Łyszczek
2019-05-12 19:55 ` [Buildroot] [PATCH v2 02/13] package/skeleton-init-openrc: basic skeleton for openrc Michał Łyszczek
2019-05-18 20:57 ` Thomas Petazzoni
2019-05-12 19:55 ` [Buildroot] [PATCH v2 03/13] system/Config.in: add new init - openrc Michał Łyszczek
2019-05-18 21:18 ` Thomas Petazzoni
2019-05-12 19:55 ` [Buildroot] [PATCH v2 04/13] package/openrc: add support for spawning getty Michał Łyszczek
2019-05-18 21:20 ` Thomas Petazzoni
2019-05-19 8:32 ` michal.lyszczek at bofc.pl
2019-05-12 19:55 ` [Buildroot] [PATCH v2 05/13] package/pkg-generic.mk: add _INSTALL_INIT_OPENRC Michał Łyszczek
2019-05-18 21:21 ` Thomas Petazzoni
2019-05-12 19:55 ` [Buildroot] [PATCH v2 06/13] package/skeleton-init-openrc: add support to remount rootfs as rw Michał Łyszczek
2019-05-18 21:22 ` Thomas Petazzoni [this message]
2019-05-19 8:32 ` michal.lyszczek at bofc.pl
2019-07-23 10:50 ` michal.lyszczek at bofc.pl
2019-05-12 19:55 ` [Buildroot] [PATCH v2 07/13] package/openrc-netifrc: net package (v0.6.1) Michał Łyszczek
2019-05-12 19:55 ` [Buildroot] [PATCH v2 08/13] package/openrc-netifrc/openrc-netifrc.mk: add support for BR2_SYSTEM_DHCP Michał Łyszczek
2019-05-12 19:55 ` [Buildroot] [PATCH v2 09/13] package/openrc: add patch to support busybox version of sysctl Michał Łyszczek
2019-05-18 21:25 ` Thomas Petazzoni
2019-05-12 19:55 ` [Buildroot] [PATCH v2 10/13] package/openrc: change /run/lock from root:uucp to root:daemon Michał Łyszczek
2019-05-18 21:26 ` Thomas Petazzoni
2019-05-12 19:55 ` [Buildroot] [PATCH v2 11/13] package/openrc: add support to set terminal encoding Michał Łyszczek
2019-05-12 19:55 ` [Buildroot] [PATCH v2 12/13] package/openrc: add support for setting terminal keymap Michał Łyszczek
2019-05-12 19:55 ` [Buildroot] [PATCH v2 13/13] package/skeleton-init-openrc: add support for starting sysv scripts Michał Łyszczek
2019-05-18 20:54 ` [Buildroot] [PATCH v2 01/13] package/openrc: new package (v0.41.2) Thomas Petazzoni
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=20190518232240.4f92819f@windsurf \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@busybox.net \
/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.