[oe-commits] org.oe.dev SlugOS 5.0 - make booting to a ramdisk (via turnup ram) work again;

mwester commit oe at amethyst.openembedded.net
Mon Sep 1 18:21:48 UTC 2008


SlugOS 5.0 - make booting to a ramdisk (via turnup ram) work again;
need to accomodate an inconsistency between find and busybox find.

Author: mwester at openembedded.org
Branch: org.openembedded.dev
Revision: 43e8ebba11015cd031816c43222dfe292ea6d64b
ViewMTN: http://monotone.openembedded.org/revision/info/43e8ebba11015cd031816c43222dfe292ea6d64b
Files:
1
packages/slugos-init/files/boot/ram
Diffs:

#
# mt diff -r7f7af4c3c8ca9d531b3dd11bbecd2f5f8861a7e7 -r43e8ebba11015cd031816c43222dfe292ea6d64b
#
#
#
# patch "packages/slugos-init/files/boot/ram"
#  from [0196e2404034a031dd316f8be685fd7072e05d4a]
#    to [6d95501a22c4d82ed70ec932d3f592ec7d6fce45]
#
============================================================
--- packages/slugos-init/files/boot/ram	0196e2404034a031dd316f8be685fd7072e05d4a
+++ packages/slugos-init/files/boot/ram	6d95501a22c4d82ed70ec932d3f592ec7d6fce45
@@ -28,9 +28,12 @@ then
 		# filter out boot (with zimage), linuxrc and anything
 		# below /var, keep dev or the boot will fail (note that
 		# nothing is mounted this early in the bootstrap).
-		find . -mount -print |
+		find . -xdev -print |
 		sed '\@^./boot/@d;\@^./boot$@d;\@^./linuxrc at d;\@^./var/@d' |
 		cpio -p -d -m -u /mnt
+		# busybox find with -xdev will not print the name of the
+		# mountpoint, so create the empty dir manually if required.
+		test -d /mnt/mnt || mkdir /mnt/mnt
 		# checkmount checks for sh, init and no .recovery plus
 		# either mnt or initrd, mnt must exist!
 		if checkmount /mnt






More information about the Openembedded-commits mailing list