From 0ff3b94c869e4ab63d73b423aac82eba69784673 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Thu, 17 Oct 2013 11:59:47 +0100 Subject: [PATCH] Remove framebuffer video drivers from ramdisks. We now forcibly remove all framebuffer video drivers from ramdisks, as part of our ongoing effort to keep every kernel we boot, in text mode, so it can be more easily intercepted by LOM hardware, nova console logging, etc. Fixes-Bug: #1178409 Change-Id: Ia72211c97c03c3f60eb9a1483297fe587de51f0b --- lib/ramdisk-functions | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ramdisk-functions b/lib/ramdisk-functions index f2410edf7..78d4376af 100644 --- a/lib/ramdisk-functions +++ b/lib/ramdisk-functions @@ -165,6 +165,8 @@ function populate_lib () { done cp -a "$MODULE_DIR" "$TMP_MOUNT_PATH/lib/modules/$KERNEL_VERSION" + echo "Removing kernel framebuffer drivers to enforce text mode consoles..." + find $TMP_MOUNT_PATH/lib/modules/$KERNEL_VERSION/kernel/drivers/video -name '*fb.ko' -exec rm -v {} \; cp -a "$FIRMWARE_DIR" "$TMP_MOUNT_PATH/lib/firmware" }