sanity.bbclass: Provide preserving the mmap_min_addr setting over reboots (from Poky)
authorRichard Purdie <richard@openedhand.com>
Tue, 26 Aug 2008 10:23:59 +0000 (10:23 +0000)
committerMarcin Juszkiewicz <hrw@openembedded.org>
Thu, 22 Jan 2009 11:19:29 +0000 (12:19 +0100)
git-svn-id: https://svn.o-hand.com/repos/poky@5106 311d38ba-8fff-0310-9ca6-ca027cbcb966

classes/sanity.bbclass

index 027d948..e442bf1 100644 (file)
@@ -101,7 +101,7 @@ def check_sanity(e):
                if os.path.exists("/proc/sys/vm/mmap_min_addr"):
                        f = file("/proc/sys/vm/mmap_min_addr", "r")
                        if (f.read().strip() != "0"):
-                               messages = messages + "/proc/sys/vm/mmap_min_addr is not 0. This will cause problems with qemu so please fix the value (as root).\n"
+                               messages = messages + "/proc/sys/vm/mmap_min_addr is not 0. This will cause problems with qemu so please fix the value (as root).\n\nTo fix this in later reboots, set vm.mmap_min_addr = 0 in /etc/sysctl.conf.\n"
                        f.close()
 
        for util in required_utilities.split():