Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 425180 - defaults/linuxrc with >=sys-apps/openrc-0.10 fail to boot on livecd
Summary: defaults/linuxrc with >=sys-apps/openrc-0.10 fail to boot on livecd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2012-07-07 17:43 UTC by Kenny Cheng
Modified: 2012-07-08 22:13 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 Kenny Cheng 2012-07-07 17:43:32 UTC
Since the changes[1] in openrc-0.10, it requires /run directory to be created in order to mount a tmpfs in. The problem is defaults/linuxrc hasn't get this done. It makes openrc showing up the error message "The /run directory does not exist. Unable to continue.".

[1] http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=82d3918d7a1c625f98fcf607c7a450f18b7e60bd


I use the following dirty hacks and it works.
--- /usr/share/genkernel/defaults/linuxrc	2012-07-07 23:46:30.609937284 +0800
+++ linuxrc	2012-07-07 23:46:01.839937464 +0800
@@ -806,7 +806,7 @@
 		fi
 	done
 
-	mkdir initramfs proc tmp sys 2>/dev/null
+	mkdir initramfs proc tmp sys run 2>/dev/null
 	chmod 1777 tmp
 
 	fi
@@ -876,7 +876,7 @@
 echo -ne "${GOOD}>>${NORMAL}${BOLD} Booting (initramfs)${NORMAL}"
 
 cd "${CHROOT}"
-mkdir "${CHROOT}/proc" "${CHROOT}/sys" 2>/dev/null
+mkdir "${CHROOT}/proc" "${CHROOT}/sys" "${CHROOT}/run" 2>/dev/null
 echo -ne "${BOLD}.${NORMAL}"
 
 # If devtmpfs is mounted, try move it to the new root
Comment 1 Sebastian Pipping gentoo-dev 2012-07-08 17:06:25 UTC
Kenny,

I'll trust you with this.  Thanks for the patch.

http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commitdiff;h=2413f1f2a334e1d464713dd8ce0eb8c0f711dc29
Comment 2 Sebastian Pipping gentoo-dev 2012-07-08 22:13:13 UTC
+*genkernel-3.4.37 (08 Jul 2012)
+
+  08 Jul 2012; Sebastian Pipping <sping@gentoo.org> +genkernel-3.4.37.ebuild:
+  Bump to 3.4.37
+