public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* Re: [gentoo-dev] usr merge
@ 2016-04-08  2:36 Damien Levac
  2016-04-08  2:44 ` M. J. Everitt
  0 siblings, 1 reply; 125+ messages in thread
From: Damien Levac @ 2016-04-08  2:36 UTC (permalink / raw
  To: gentoo-dev

Anybody who have this kind of misconception about 'usr merge' should
read this:

https://www.freedesktop.org/wiki/Software/systemd/TheCaseForTheUsrMerge/

Signed,

a user who got scared by this thread and documented myself before
freaking out too much...

>> Personally I think that merging things into /usr is a major policy >>
decision that is likely to contravene upstream installation
>> locations.  I wouldn't do it lightly, if at all.


-- 
Damien Levac


^ permalink raw reply	[flat|nested] 125+ messages in thread
* Re: [gentoo-dev] usr merge
@ 2016-04-09  3:59 Damien Levac
  2016-04-09  5:32 ` waltdnes
  0 siblings, 1 reply; 125+ messages in thread
From: Damien Levac @ 2016-04-09  3:59 UTC (permalink / raw
  To: gentoo-dev@lists.gentoo.org >> gentoo-dev


>  Seriously... how many people run Bluetooth keyboards on Gentoo >anyways?

That you ask such a question is concerning to me. Are we discriminating
against normal desktop users now?

-- 
Damien Levac


^ permalink raw reply	[flat|nested] 125+ messages in thread
* Re: [gentoo-dev] usr merge
@ 2016-04-09  3:54 Damien Levac
  2016-04-09  4:10 ` Anthony G. Basile
  0 siblings, 1 reply; 125+ messages in thread
From: Damien Levac @ 2016-04-09  3:54 UTC (permalink / raw
  To: gentoo-dev

>I personally think sharing /usr over a network and deploying it to
>multiple machines could be a recipe for disaster.

Uh... it is a nice opinion, but when you are managing 1000+ machines,
scripting is not cutting it anymore. Obviously we are network
distributing it. Not that we aren't already successful with it without
the merge though.

-- 
Damien Levac


^ permalink raw reply	[flat|nested] 125+ messages in thread
* Re: [gentoo-dev] usr merge
@ 2016-04-08  3:12 Damien Levac
  2016-04-08  4:43 ` Raymond Jennings
  0 siblings, 1 reply; 125+ messages in thread
From: Damien Levac @ 2016-04-08  3:12 UTC (permalink / raw
  To: gentoo-dev


> Three points :-
> 1) systemd - not all gentoo users subscribe to this 'philosophy' .. >but
>no, I don't want get drawn into debates of yes/no of systemd ..

The article start by saying the points are not just for systemd, even
though the latter might find the merge more 'needed'...

>2) "Today, a separate /usr partition already must be mounted by the
>initramfs during early boot, thus making the justification for a
>split-off moot." - no, not all gentoo users have an initramfs and
>need/want one .. so this is a false assumption.

Agreed, this does not apply to Gentoo.

>3) I still believe there is merit in distinguishing between binaries
>that can/should be run as root, and those that can/should not. Those
>that run as root 100% of the time, or use VMs, don't really 'use' linux
>in the original sense of the OS ..

/usr/sbin still exists in a merged usr, so I don't get that point...

>*hides in his bike-shed, awaiting the flaming torches....*

Don't worry: no troll here.

-- 
Damien Levac


^ permalink raw reply	[flat|nested] 125+ messages in thread
* [gentoo-dev] usr merge
@ 2016-04-05  1:19 William Hubbs
  2016-04-05 10:10 ` Alexis Ballier
                   ` (4 more replies)
  0 siblings, 5 replies; 125+ messages in thread
From: William Hubbs @ 2016-04-05  1:19 UTC (permalink / raw
  To: gentoo development; +Cc: aballier


[-- Attachment #1.1: Type: text/plain, Size: 1178 bytes --]

All,

I thought that since the usr merge is coming up again, and since I lost
track of the message where it was brought up, I would open a
new thread to discuss it.

When it came up before, some were saying that the /usr merge violates
the fhs. I don't remember the specifics of what the claim was at the
time, (I'm sure someone will point it out if it is still a concern).

I don't think creating usr merged stages would be that difficult. I
think it would just be a matter of creating a new version of baselayout
that puts these symlinks in place:

/bin->usr/bin
/lib->usr/lib
/lib32->usr/lib32
/lib64->usr/lib64
/sbin->usr/bin
/usr/sbin->bin

Once that is in place in a new baselayout, I think portage's colission
detection would be able to catch files that had the same names and were
originally in different paths when building the new stages.

I put some thought also in how to nigrate live systems, and I'm not sure
what the best way to do that is. I wrote a script, which would do it in
theory, but I haven't tested because I only have one system and if
it breaks it the only way back would be to reinstall.

The script is attached.


Thoughts on any of this?

William


[-- Attachment #1.2: usrmerge --]
[-- Type: text/plain, Size: 1232 bytes --]

#!/bin/bb

is_internal()
{
	[ -z "$1" ] && return 1
	case $(command -v $1) in
		*/*) rc=1 ;;
		*) rc=0 ;;
	esac
	return $rc
}

run_command()
{
	local dryrun=
	[ $DRYRUN -eq 1 ] && dryrun=echo
	$dryrun "$@"
}

for cmd in cp ln; do
	if ! is_internal $cmd; then
		echo "Please rebuild busybox and include the $cmd command."
		exit 1
	fi
done

if [ -L /bin -a -L /sbin ]; then
	echo "It appears that the /usr merge has already been done on this system."
	exit 0
fi

DRYRUN=1
HELP=0
while [ $# -gt 0 ]; do
	case $1 in
		--dryrun|--dry-run) DRYRUN=1 ;;
		-h|--help) HELP=1 ;;
	esac
	shift
done

if [ $HELP -eq 1 ]; then
	echo "$(basename $0) -h \| --help - displays this message"
	echo "$(basename $0) --dryrun \| --dry-run  - show what would be done"
	exit 0
fi

# copy binaries
for dir in /bin /sbin /usr/sbin; do
	run_command cp -a $dir/* /usr/bin
done

# copy libraries
for dir in /lib*; do
	[ -L $dir ] && continue
	run_command cp -a $dir/* /usr$dir
done

# Create the /usr merge compatibility symlinks
for dir in /bin /sbin; do
run_command rm -rf $dir
run_command ln -s usr/bin $dir
done
run_command rm -rf /usr/sbin
run_command ln -s bin /usr/sbin
for dir in /lib*; do
	run_command rm -rf $dir
	run_command ln -s usr$dir $dir
done

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

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

end of thread, other threads:[~2016-04-11  8:40 UTC | newest]

Thread overview: 125+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-08  2:36 [gentoo-dev] usr merge Damien Levac
2016-04-08  2:44 ` M. J. Everitt
2016-04-08 10:36   ` Rich Freeman
2016-04-09  5:20     ` [gentoo-dev] " Duncan
2016-04-08 14:20   ` [gentoo-dev] " William Hubbs
2016-04-08 14:33     ` M. J. Everitt
2016-04-08 14:50       ` [gentoo-dev] pokit (was: usr merge) Ian Stakenvicius
2016-04-09  6:01         ` [gentoo-dev] " Duncan
2016-04-08 15:02       ` [gentoo-dev] usr merge Rich Freeman
2016-04-08 15:09         ` M. J. Everitt
2016-04-08 15:14         ` M. J. Everitt
2016-04-08 15:56           ` Alexis Ballier
2016-04-08 16:02           ` Rich Freeman
2016-04-08 20:07     ` waltdnes
2016-04-08 20:18       ` Joseph Booker
2016-04-08 20:30         ` Rich Freeman
2016-04-09  1:18           ` waltdnes
2016-04-09  1:23             ` Austin English
2016-04-10 17:29             ` Robin H. Johnson
2016-04-10 17:51             ` [gentoo-dev] " »Q«
2016-04-09  1:16         ` [gentoo-dev] " waltdnes
  -- strict thread matches above, loose matches on Subject: below --
2016-04-09  3:59 Damien Levac
2016-04-09  5:32 ` waltdnes
2016-04-09 11:11   ` Rich Freeman
2016-04-09 16:09     ` waltdnes
2016-04-09 16:15       ` James Le Cuirot
2016-04-09 16:59         ` Consus
2016-04-09 17:59         ` netfab
2016-04-09 18:42         ` Dale
2016-04-10  0:09         ` J. Roeleveld
2016-04-10  1:07           ` Rich Freeman
2016-04-10  6:59             ` J. Roeleveld
2016-04-10  9:04           ` James Le Cuirot
2016-04-11  6:41             ` J. Roeleveld
2016-04-11  8:10               ` Raymond Jennings
2016-04-11  8:40                 ` J. Roeleveld
2016-04-09 19:03       ` Canek Peláez Valdés
2016-04-09 19:49         ` Philip Webb
2016-04-09 19:53           ` Rich Freeman
2016-04-09 20:54             ` M. J. Everitt
2016-04-09 21:23           ` Canek Peláez Valdés
2016-04-09 22:50             ` Philip Webb
2016-04-09 22:59               ` M. J. Everitt
2016-04-09 23:53               ` William Hubbs
2016-04-10  0:37                 ` M. J. Everitt
2016-04-10  1:14                   ` Rich Freeman
2016-04-10  1:35                     ` M. J. Everitt
2016-04-10  2:06                       ` Rich Freeman
2016-04-10  2:17                         ` M. J. Everitt
2016-04-10  3:08                           ` Rich Freeman
2016-04-10  3:28                             ` M. J. Everitt
2016-04-10  3:49                               ` Rich Freeman
2016-04-10  4:01                                 ` M. J. Everitt
2016-04-10  0:38               ` Gordon Pettey
2016-04-09 18:47     ` waltdnes
2016-04-09  3:54 Damien Levac
2016-04-09  4:10 ` Anthony G. Basile
2016-04-08  3:12 Damien Levac
2016-04-08  4:43 ` Raymond Jennings
2016-04-05  1:19 William Hubbs
2016-04-05 10:10 ` Alexis Ballier
2016-04-05 12:26   ` [gentoo-dev] " Duncan
2016-04-05 16:53     ` [gentoo-dev] " Alexis Ballier
2016-04-06  4:15 ` Richard Yao
2016-04-06  7:42   ` Alexis Ballier
2016-04-06  8:55     ` James Le Cuirot
2016-04-06 14:06       ` Richard Yao
2016-04-06 14:04     ` Richard Yao
2016-04-06 14:48       ` Alexis Ballier
2016-04-07 11:27       ` Tom H
2016-04-06 17:06   ` waltdnes
2016-04-06 14:58 ` M. J. Everitt
2016-04-06 15:11   ` Alexis Ballier
2016-04-06 16:06     ` Richard Yao
2016-04-06 16:12       ` M. J. Everitt
2016-04-06 16:20       ` Alexis Ballier
2016-04-06 16:33         ` Richard Yao
2016-04-06 16:57           ` Alexis Ballier
2016-04-06 17:06             ` Alexis Ballier
2016-04-06 17:43           ` Richard Yao
2016-04-06 16:24       ` Richard Yao
2016-04-06 15:52   ` Richard Yao
2016-04-06 20:43     ` William Hubbs
2016-04-06 21:36       ` Richard Yao
2016-04-07  0:44         ` William Hubbs
2016-04-07  9:12         ` Alexis Ballier
2016-04-07 14:40           ` William Hubbs
2016-04-07 15:12             ` [gentoo-dev] " Duncan
2016-04-07 15:42               ` Rich Freeman
2016-04-07 15:46                 ` William Hubbs
2016-04-07 16:22                   ` Rich Freeman
2016-04-07 16:36                     ` [gentoo-dev] " Alexis Ballier
2016-04-07 18:21                       ` Raymond Jennings
2016-04-07 18:32                       ` M. J. Everitt
2016-04-07 18:54                         ` Rich Freeman
2016-04-07 20:18                           ` Raymond Jennings
2016-04-08  1:39                             ` William Hubbs
2016-04-08  1:42                               ` William Hubbs
2016-04-08  2:35                                 ` M. J. Everitt
2016-04-08 10:14                                 ` Rich Freeman
2016-04-08 11:31                                   ` Anthony G. Basile
2016-04-08 11:41                                     ` James Le Cuirot
2016-04-08 11:52                                       ` Rich Freeman
2016-04-08 11:54                                       ` Anthony G. Basile
2016-04-08 12:55                                         ` Rich Freeman
2016-04-09 12:52                                           ` Luca Barbato
2016-04-08 22:20                                     ` Daniel Campbell
2016-04-09  0:42                                       ` William Hubbs
2016-04-09  1:11                                         ` Anthony G. Basile
2016-04-09  1:36                                           ` William Hubbs
2016-04-09  1:51                                             ` Anthony G. Basile
2016-04-09  3:03                                               ` Rich Freeman
2016-04-09  4:06                                                 ` Anthony G. Basile
2016-04-09 10:56                                                   ` Rich Freeman
2016-04-09 11:16                                                     ` Anthony G. Basile
2016-04-09 12:39                                                       ` Anthony G. Basile
2016-04-09 15:11                                                   ` William Hubbs
2016-04-09 17:25                                                     ` Alexis Ballier
2016-04-09 14:11                                         ` Ian Stakenvicius
2016-04-07  9:03     ` Alexis Ballier
2016-04-09 11:41 ` Luca Barbato
2016-04-09 11:53   ` Rich Freeman
2016-04-09 12:27     ` Luca Barbato
2016-04-09 12:37       ` Rich Freeman
2016-04-09 13:03         ` Luca Barbato
2016-04-10 11:55 ` Joshua Kinard
2016-04-10 12:14   ` Rich Freeman
2016-04-10 12:34     ` Anthony G. Basile
2016-04-11  1:59     ` Joshua Kinard
2016-04-10 12:26   ` Anthony G. Basile

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox