All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bitbake.conf: make ROOT_HOME default match the rest of the world
@ 2014-07-31 19:19 Paul Gortmaker
  2014-08-04 16:39 ` Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Gortmaker @ 2014-07-31 19:19 UTC (permalink / raw)
  To: Richard Purdie; +Cc: poky

All distros that I've ever used have /root as the home dir for
UID=0 (root) and even the Filesystem Hierarchy Standard lists
it as /root [1].  So if you've never come across the /home/root
thing before, it can violate the principle of least surprise.

In addition, using /home/root does suck if /home happens to be
on NFS, and you are trying to login as root to rescue something.

Change the default to be "/root" so we are consistent with the
rest of the world and the standards.  If someone wants /home/root
to be back compatible with earlier oe-core/yocto builds, they
can simply set ROOT_HOME themselves in their local.conf file.

[1] http://www.pathname.com/fhs/pub/fhs-2.3.html#ROOTHOMEDIRECTORYFORTHEROOTUSER

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 5872d1d12cff..fecb45d173dd 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -74,8 +74,9 @@ USRBINPATH = "${bindir}"
 USRBINPATH_class-native = "/usr/bin"
 USRBINPATH_class-nativesdk = "/usr/bin"
 
-# Root home directory
-ROOT_HOME ??= "/home/root"
+# Root home directory, typically /root but optionally sometimes
+# /home/root if and only if /home is local and != NFS
+ROOT_HOME ??= "/root"
 
 ##################################################################
 # Architecture-dependent build variables.
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] bitbake.conf: make ROOT_HOME default match the rest of the world
  2014-07-31 19:19 [PATCH] bitbake.conf: make ROOT_HOME default match the rest of the world Paul Gortmaker
@ 2014-08-04 16:39 ` Richard Purdie
  2014-08-04 22:12   ` Khem Raj
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2014-08-04 16:39 UTC (permalink / raw)
  To: Paul Gortmaker; +Cc: poky

On Thu, 2014-07-31 at 15:19 -0400, Paul Gortmaker wrote:
> All distros that I've ever used have /root as the home dir for
> UID=0 (root) and even the Filesystem Hierarchy Standard lists
> it as /root [1].  So if you've never come across the /home/root
> thing before, it can violate the principle of least surprise.
> 
> In addition, using /home/root does suck if /home happens to be
> on NFS, and you are trying to login as root to rescue something.
> 
> Change the default to be "/root" so we are consistent with the
> rest of the world and the standards.  If someone wants /home/root
> to be back compatible with earlier oe-core/yocto builds, they
> can simply set ROOT_HOME themselves in their local.conf file.
> 
> [1] http://www.pathname.com/fhs/pub/fhs-2.3.html#ROOTHOMEDIRECTORYFORTHEROOTUSER
> 
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>

This is a key decision for OE so it needs to go to the OE-Core list.

Cheers,

Richard



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] bitbake.conf: make ROOT_HOME default match the rest of the world
  2014-08-04 16:39 ` Richard Purdie
@ 2014-08-04 22:12   ` Khem Raj
  0 siblings, 0 replies; 3+ messages in thread
From: Khem Raj @ 2014-08-04 22:12 UTC (permalink / raw)
  To: Richard Purdie; +Cc: poky

On 14-08-04 17:39:31, Richard Purdie wrote:
> On Thu, 2014-07-31 at 15:19 -0400, Paul Gortmaker wrote:
> > All distros that I've ever used have /root as the home dir for
> > UID=0 (root) and even the Filesystem Hierarchy Standard lists
> > it as /root [1].  So if you've never come across the /home/root
> > thing before, it can violate the principle of least surprise.
> > 
> > In addition, using /home/root does suck if /home happens to be
> > on NFS, and you are trying to login as root to rescue something.
> > 
> > Change the default to be "/root" so we are consistent with the
> > rest of the world and the standards.  If someone wants /home/root
> > to be back compatible with earlier oe-core/yocto builds, they
> > can simply set ROOT_HOME themselves in their local.conf file.
> > 
> > [1] http://www.pathname.com/fhs/pub/fhs-2.3.html#ROOTHOMEDIRECTORYFORTHEROOTUSER
> > 
> > Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
> 
> This is a key decision for OE so it needs to go to the OE-Core list.

I think it is a good improvement if it doesnt hamper upgrade paths, I
personally do not have a usecase of upgade.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-08-04 22:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-31 19:19 [PATCH] bitbake.conf: make ROOT_HOME default match the rest of the world Paul Gortmaker
2014-08-04 16:39 ` Richard Purdie
2014-08-04 22:12   ` Khem Raj

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.