From: Alan Yaniger <alan@tkos.co.il>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2] Set PGROOT dir owner to be "postgres".
Date: Wed, 9 Mar 2016 11:21:49 +0200 [thread overview]
Message-ID: <20160309092148.GC14938@tkos.co.il> (raw)
In-Reply-To: <20160307092908.6334a90b@free-electrons.com>
Hi Thomas,
I see what my error was. I installed the rootfs on my SSD by copying
it from a partition on a USB-disk which I had mounted. Then I ran "cp"
to copy from the mounted partition to the SSD, and I forgot to use the -p
option to preserve attributes. When I installed after the "fix", I used "tar" to
install, which preserved the ownership.
I changed the state of the patch to "Rejected" in Patchwork.
Alan
On 07/03/16 09:29, Thomas Petazzoni wrote:
> Hello,
>
> On Mon, 7 Mar 2016 06:51:42 +0200, Baruch Siach wrote:
>
> > On Sun, Mar 06, 2016 at 10:29:09PM +0200, Alan Yaniger wrote:
> > > Without setting the owner of /var/lib/pgsql to the user "postgres",
> > > the postgres server fails to start on boot.
> > >
> > > Signed-off-by: Alan Yaniger <alan@tkos.co.il>
> > > ---
> > > package/postgresql/postgresql.mk | 4 ++++
> > > 1 file changed, 4 insertions(+)
> > >
> > > diff --git a/package/postgresql/postgresql.mk b/package/postgresql/postgresql.mk
> > > index 444c1b1..5906ce9 100644
> > > --- a/package/postgresql/postgresql.mk
> > > +++ b/package/postgresql/postgresql.mk
> > > @@ -17,6 +17,10 @@ POSTGRESQL_CONF_ENV = ac_cv_type_struct_sockaddr_in6=yes \
> > > POSTGRESQL_AUTORECONF = YES
> > > POSTGRESQL_CONF_OPTS = --disable-rpath
> > >
> > > +define POSTGRESQL_PERMISSIONS
> > > + /var/lib/pgsql d 755 postgres postgres - - - - -
> > > +endef
> >
> > A better place for this IMO would be near POSTGRESQL_USERS below.
>
> Well, there is already a POSTGRESQL_USERS:
>
> define POSTGRESQL_USERS
> postgres -1 postgres -1 * /var/lib/pgsql /bin/sh - PostgreSQL Server
> endef
>
> And this should already create /var/lib/pgsql, owned by the
> postgres:postgres user.
>
> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
--
Alan Yaniger
Tk Open Systems, Ltd
Telephone: 0546-841-481
Skype: alanyaniger
http://tkos.co.il
next prev parent reply other threads:[~2016-03-09 9:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-06 20:29 [Buildroot] [PATCH 1/2] Set PGROOT dir owner to be "postgres" Alan Yaniger
2016-03-06 20:29 ` Alan Yaniger
2016-03-06 20:29 ` [Buildroot] [PATCH 2/2] docs: Fixed syntax error in makedev-syntax example Alan Yaniger
2016-05-23 20:44 ` Peter Korsgaard
2016-03-06 20:29 ` [Buildroot] [PATCH 2/2] docs: Fixed syntax error in makedev-syntax example. In the makedev syntax documentation, one of the examples lacks the "mode" value Alan Yaniger
2016-03-07 4:51 ` [Buildroot] [PATCH 1/2] Set PGROOT dir owner to be "postgres" Baruch Siach
2016-03-07 5:40 ` Baruch Siach
2016-03-07 8:29 ` Thomas Petazzoni
2016-03-09 9:21 ` Alan Yaniger [this message]
2016-03-09 12:15 ` 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=20160309092148.GC14938@tkos.co.il \
--to=alan@tkos.co.il \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox