Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503408 - =sys-apps/openrc-0.12.4 Separated /usr. install command in tmpfiles.sh
Summary: =sys-apps/openrc-0.12.4 Separated /usr. install command in tmpfiles.sh
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 481182
  Show dependency tree
 
Reported: 2014-03-04 13:23 UTC by Nobuyuki MORIYA
Modified: 2014-08-07 18:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nobuyuki MORIYA 2014-03-04 13:23:58 UTC
My Gentoo Linux Box is separated /usr on lvm.
Command fails whenever the system is booted.

Is there a problem with the install command of busybox?

--- a/tmpfiles.sh	2014-03-04 22:20:31.595512431 +0900
+++ b/tmpfiles.sh	2014-03-04 22:19:56.340211395 +0900
@@ -77,7 +77,7 @@
 	[ $CREATE -gt 0 ] || return 0
 
 	if [ ! -e "$path" ]; then
-		dryrun_or_real install -m"$mode" -o"$uid" -g"$gid" /dev/null "$path"
+		dryrun_or_real busybox install -m"$mode" -o"$uid" -g"$gid" /dev/null "$path"
 		[ -z "$arg" ] || _w "$@"
 	fi
 }
@@ -88,7 +88,7 @@
 
 	[ $CREATE -gt 0 ] || return 0
 
-	dryrun_or_real install -m"$mode" -o"$uid" -g"$gid" /dev/null "$path"
+	dryrun_or_real busybox install -m"$mode" -o"$uid" -g"$gid" /dev/null "$path"
 	[ -z "$arg" ] || _w "$@"
 }
 
@@ -99,7 +99,7 @@
 	[ $CREATE -gt 0 ] || return 0
 
 	if [ ! -d "$path" ]; then
-		dryrun_or_real install -d -m"$mode" -o"$uid" -g"$gid" "$path"
+		dryrun_or_real busybox install -d -m"$mode" -o"$uid" -g"$gid" "$path"
 	fi
 }
 
@@ -112,7 +112,7 @@
 	fi
 
 	if [ $CREATE -gt 0 ]; then
-		dryrun_or_real install -d -m"$mode" -o"$uid" -g"$gid" "$path"
+		dryrun_or_real busybox install -d -m"$mode" -o"$uid" -g"$gid" "$path"
 	fi
 }
 


Reproducible: Always

Steps to Reproduce:
1. system boot, or reboot
2. Error message is always displayed.
Comment 1 William Hubbs gentoo-dev 2014-03-05 19:55:40 UTC
I can't accept this patch, because it forces OpenRc to have a hard
dependency on busybox, which is not a good idea.

The only way to get around this would be to not use the install command
at all, and I'm not sure whether that is a good idea either.

Does anyone else have any thoughts?
Comment 2 Nobuyuki MORIYA 2014-03-06 00:18:55 UTC
At first, Sorry my bad English.

My patch is not a good idea to have a strong dependency on Busybox.

It came up with a way to replace cp, chmod, chown command to the Install command, but I have not tried it yet...

This is also not a good idea?
Comment 3 William Hubbs gentoo-dev 2014-03-06 19:49:16 UTC
If I do anything, I will move away from the install command, I was
just wondering what others thought about going that route.
Comment 4 William Hubbs gentoo-dev 2014-08-07 18:37:43 UTC
A fix for this is in commit 647e08e and will be included in OpenRC-0.13.