aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/linux/linux-magicbox-2.6.18.6/010-load-ramdisk-even-if-rootdev-equals-ramdisk.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/linux/linux-magicbox-2.6.18.6/010-load-ramdisk-even-if-rootdev-equals-ramdisk.patch')
-rw-r--r--recipes/linux/linux-magicbox-2.6.18.6/010-load-ramdisk-even-if-rootdev-equals-ramdisk.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/recipes/linux/linux-magicbox-2.6.18.6/010-load-ramdisk-even-if-rootdev-equals-ramdisk.patch b/recipes/linux/linux-magicbox-2.6.18.6/010-load-ramdisk-even-if-rootdev-equals-ramdisk.patch
new file mode 100644
index 0000000000..d980be9d6c
--- /dev/null
+++ b/recipes/linux/linux-magicbox-2.6.18.6/010-load-ramdisk-even-if-rootdev-equals-ramdisk.patch
@@ -0,0 +1,16 @@
+--- linux-2.6.15-magicbox3/init/do_mounts_initrd.c~ 2005-08-31 00:26:43.000000000 +0200
++++ linux-2.6.15-magicbox3/init/do_mounts_initrd.c 2006-05-14 14:00:35.000000000 +0200
+@@ -112,8 +112,12 @@
+ * unless /dev/ram0 is supposed to be our actual root device,
+ * in that case the ram disk is just set up here, and gets
+ * mounted in the normal path.
++ *
++ * Not true for magicbox: someone put root=/dev/ram into
++ * bootloader defaults and prepared hundreds of boards...
++ * Fix issue there.
+ */
+- if (rd_load_image("/initrd.image") && ROOT_DEV != Root_RAM0) {
++ if (rd_load_image("/initrd.image")) {
+ sys_unlink("/initrd.image");
+ handle_initrd();
+ return 1;