Skip to content

Instantly share code, notes, and snippets.

View chandana-docs's full-sized avatar

chandana-docs

View GitHub Profile

How to Rotate the GRUB Screen on an EFI System (Experimental/Custom Build)

This guide outlines an experimental method to patch, build, and install a custom version of GRUB that supports screen rotation via a configuration flag.

⚠️ Warning: This process involves compiling a custom bootloader and overwriting system files. Proceed with caution. Incorrect execution may render your system unbootable.

This guide uses specific commands tailored for Debian/Ubuntu-based systems. Adjust package names (apt install ...) for other distributions (Fedora, Arch, etc.).

Prerequisites

  • A Debian-based Linux distribution.
  • An active internet connection to clone the repository and install dependencies.

Creating a Debian 12 RootFS and Docker Image via debootstrap

This guide outlines the steps required to generate a minimal Debian 12 (Bookworm) root filesystem using debootstrap, package it into a compressed tarball, and use that tarball to create a new Docker image.

Prerequisites

Ensure you have debootstrap, tar, and Docker installed on your host machine.

Step 1: Generate the Minimal Debian 12 Root Filesystem

We use debootstrap to download and extract the base Debian packages into a dedicated directory (/srv/debian12_rootfs).

# Create the target directory