GRML-DEBOOTSTRAP(8)
bestie you found it β this is grml-debootstrap(8) π the manual page for the thing that installs plain Debian for you, fast, and does not play around. Come sit, we're doing this together.
β¨ NAME β¨
grml-debootstrap β a wrapper around mmdebstrap for installing plain Debian π
π SYNOPSIS π
grml-debootstrap [ options ]
[IMAGE][1]πΈ[Screenshot]πΌοΈ
πΈ INTRODUCTION πΈ
okay so, grml-debootstrap is a wrapper suite around mmdebstrap (and debootstrap, yeah, both, they're a duo π«Ά) and its whole thing is installing a plain Debian system very fast and very easy. like, that's the vibe. that's the whole assignment.
All you have to do is adjust a few variables in the configuration file /etc/debootstrap/config, or specify some command line options, and then invoke grml-debootstrap. That's it. That's the ritual π―οΈ
And here's the cute part: if you invoke it without any configuration modifications and without any command line options, you get a dialog based front end that lets you control some basic configuration options. no config file spelunking required, it just asks you nicely. main character energy fr fr π
A plain and base Debian system will be installed on the given device, directory or virtual image file then. β¨ And yes, customization of this process is possible as well β you're not locked into the defaults, go off, customize, slay.
β οΈ Caution β οΈ The Grml team does not take responsibility for loss of any data! ππ
like. read that twice. back it up. grml-debootstrap will absolutely write to whatever device, directory or virtual image file you hand it, and there is no undo button, no cap. the Grml team said "not our problem" and honestly, they're right β it's your device, bestie π«Ά
part 1 done, and lowkey we're just getting started β more of the page is coming right up π
π OPTIONS AND ENVIRONMENT VARIABLES π
okay bestie, this is the big one, the main character section, the part where all the flags live. every single one of them. hydrate first π«Ά
--arch architectureβ pick the architecture you wanna install for, and if you don't say anything it just defaults to whatever arch you're running rn. like it just knows. example:"--arch amd64"β¨--backportreposβ turns on Debian's Backports repository through the/etc/apt/sources.list.d/backports.sourcesconfig file, so you get the option to install Debian packages straight from Backports. fresh packages, no cap π--bootappend appendline-for-the-kernelβ hand it the appendline for the kernel. e.g."pci=nomsi"π-c,--config fileβ use this specific config file instead of vibing with the default, which is/etc/debootstrap/config.--chroot-scripts directoryβ run chroot scripts from the directory you name. this is your customisation era: the executable script(s) chillin' in that directory get executed at the very end of the chroot procedure. default directory:/etc/debootstrap/chroot-scripts/πΈ--contribβ enables thecontribrepository inCOMPONENTS. by default literally onlymainis enabled. unlock the side quests-d,--confdir pathβ where the debootstrap configuration files live. defaults to/etc/debootstrap.--debconf fileβ use this file for preseeding Debian packages instead of the default<confdir>/debconf-selections. π no interactive surprises--debopt paramsβ extra parameters, passed straight through to thedebootstrapcommand. yes, straight through. π«Ά--debugβ run in very verbose mode. iconic for debugging problems with grml-debootstrap or for clocking exactly what's actually being executed under the hood. π--defaultinterfacesβ installs a default/etc/network/interfacesfile (DHCP for all local Ethernet, WLAN and WWAN interfaces, using predictable network interface names and usingeth0as the traditional interface name for backward compatibility) instead of taking over the config from the host system. this bad boy gets automatically enabled when you use--vmor--vmfile. π«--efi deviceβ the partition where the EFI boot manager should be installed. if the device you named doesn't use a FAT filesystem yet, grml-debootstrap automatically creates the filesystem for you. if a FAT filesystem is already there, the filesystem creation is skipped. please make sure it's a valid FAT32 filesystem and that the partition has thebootandespflags enabled. heads up: this option requires EFI support on the running system and it is NOT supported for Virtual Machine deployments. π«π--filesystem filesystemβ the filesystem to create when installing to a partition. if you leave it unset it defaults toext4. valid values are all the filesystems that can be created throughmkfs.filesystemβ so like, whatever yourmkfscan cook. π--forceβ skip the user acknowledgement and do not prompt for user input. no takebacks, bestie π--grmlreposβ enables Grml.org's Debian repository (http://deb.grml.org/) via the/etc/apt/sources.list.d/grml.sourcesconfiguration file, so you get the option to install Debian packages from Grml's repo. the house always wins π--grub deviceβ the device where grub should be installed. note: only the MBR (master boot record) works (/dev/sda,/dev/sdb,...). partitions like/dev/sda1,/dev/sdb2,... are NOT supported, because grub2 doesn't support installation into the PBR (partition boot record) anymore. usage example:--grub /dev/sda. note: just do not set this option at all if you wanna avoid installation of grub. π--help,-hβ show the summary of options and exit. classic.--hostname hostnameβ use this hostname instead of the default, which is$HOSTNAMEor, if that's unset,grml. π·οΈ--imagesize sizeβ the size for the Virtual Machine or Raspberry Pi disk file. if you don't specify it, it defaults to2G(being2GiB) for virtual machines, and3G(being3GiB) for Raspberry Pi images. syntax is whateverqemu-imgsupports β peepqemu-img(1)for the deets. usage example:--imagesize 3Gβ¨--keep_src_listβ do not override the user-provided/etc/apt/sources.list.d/debian.sources, and do not delete/etc/apt/sources.list. respecting your choices, as it should-m,--mirror URLβ specify the mirror that should be used forapt-get/aptitude. corresponds with the configuration variableMIRROR. π--nodebootstrapβ skip debootstrap, only do the configuration to the target. speedrun mode πββοΈ--nointerfacesβ do not copy/etc/network/interfacesfrom the host system to the target. nope, not doing it.--nokernelβ skip installation of the default kernel images. this one might be interesting for you if you want a Debian system that doesn't need to provide a regular boot, e.g. a system that provides ISOs for booting via GRUB usinggrml-rescueboot. π§--non-freeβ enables thenon-freerepository inCOMPONENTS. for bookworm and newer Debian releases, thenon-free-firmwarerepository gets enabled too. by default onlymainis enabled. going where the firmware is--nopackagesβ skip installation of packages defined in/etc/debootstrap/packages. π--nopasswordβ do not prompt for the root password. note: use the--passwordoption if you want to set the root password during an automatic installation but don't want to use the interactive dialog. π-p,--mntpoint /mntpointβ specify the mount point used for mounting the target system. corresponds with the configuration variableMNTPOINT. note: this option has no effect if option-tis given and represents a directory. π--packages fileβ use this file as the list of packages that should be installed, instead of the default package list file<confdir>/packages. π¦--password passwordβ use this password as the password for userroot. β οΈ use with caution, because your command line might be visible in the process list and the shell history. it's meant for automatic installation only. fr fr, that's a real one π--post-scripts directoryβ execute scripts from this directory after executing the chroot script. this lets you customise the system after the chroot has been set up. the environment variable$MNTPOINTis available inside the scripts for direct access of the chroot. default directory:/etc/debootstrap/post-scripts/π¦--pre-scripts directoryβ execute scripts from this directory before executing the chroot script. this lets you customise the system before the chroot has been set up. the environment variable$MNTPOINTis available inside the scripts for direct access of the chroot. default directory:/etc/debootstrap/pre-scripts/πΈ-r,--release releasenameβ specify the release of the new Debian system. supported release names:bookworm,trixie,forkyandsid. corresponds with the configuration variableRELEASE. default release:trixie. trixie supremacy π--remove-configsβ delete grml-debootstrap configuration files (/etc/debootstrap/*) from the installed system. useful for reproducible builds, or if you simply don't want to leak information. π§Ή--rpiβ set up a Raspberry Pi installation on an existing block device, which will be partitioned. this allows deployment of a physical Raspberry Pi system. needs to be combined with the--targetoption. this option automatically enables the--defaultinterfacesoption. usage example:--rpi --target /dev/mmcblk0π--rpifileβ set up a Raspberry Pi installation using a regular file instead of installing to a partition/block device. this allows creation of a Raspberry Pi image. needs to be combined with the--targetoption (qemu-img create -f raw ...is executed on the specified target). this option automatically enables the--defaultinterfacesoption. usage example:--rpifile --target /mnt/sda1/rpi.imgπ--rpifirm deviceβ the partition where the Raspberry Pi firmware should be installed. if the device you named doesn't use a FAT filesystem yet, grml-debootstrap automatically creates the filesystem. if a FAT filesystem is already present, the filesystem creation is skipped. please ensure it's a valid FAT32 filesystem. this option is NOT supported for Raspberry Pi image file deployments. π--sshcopyauthβ use the locally available$HOME/.ssh/authorized_keysto authorise root login on the target system. this installs$HOME/.ssh/authorized_keysas/root/.ssh/authorized_keyson the target system. if you want to use a different file than$HOME/.ssh/authorized_keys, the environment variableAUTHORIZED_KEYS_SOURCEcan be used. ποΈ--sshcopyidβ use locally available public keys to authorise root login on the target system. similar tossh-copy-id(1)(without the-ioption), it checks ifssh-add -Lprovides any output, and if so, those keys are appended to/root/.ssh/authorized_keys(creating the file and directory, with mode0700). β¨π-t,--target targetβ the target partition (/dev/...) or directory (anything else without/devat the beginning). π―-v,--verboseβ increase verbosity. more words, more lore--vmβ set up a Virtual Machine on an existing block device, which will be partitioned. this allows deployment of a Virtual Machine. needs to be combined with the--targetoption. this option automatically enables the--defaultinterfacesoption. usage example:--vm --target /dev/mapper/your-vm-diskπ»--vmfileβ set up a Virtual Machine using a regular file instead of installing to a partition/block device or directory. this allows deployment of a Virtual Machine. needs to be combined with the--targetoption (qemu-img create -f raw ...is executed on the specified target). this option automatically enables the--defaultinterfacesoption. usage example:--vmfile --target /mnt/sda1/qemu.imgπΎ--vmsize sizeβ deprecated alias for--imagesize. she's old, she's retired, but she's still here π--vmefiβ create an EFI boot partition for the VM. π₯Ύ-V,--versionβ show version of the program and exit. π
Warning the command line parsing of grml-debootstrap usually does not validate the provided arguments for the command line options. please be careful and check docs and /etc/debootstrap/config for further information. bestie i am begging you, read the docs first π
π NETWORKING π
so by default β and "by default" here means if none of the options --nointerfaces, --defaultinterfaces, --vmfile or --vm are given β /etc/network/interfaces gets copied from the host over to the target system. that's it, that's the vibe. π«Ά
π USAGE EXAMPLES π
okay bestie, here's the tea β real commands, real vibes, copy them exactly π
grml-debootstrap --target /dev/sda1 --grub /dev/sda
Install default Debian release (trixie) on /dev/sda1 and install bootmanager GRUB in MBR (master boot record) of /dev/sda. β¨
grml-debootstrap --release bookworm --target /dev/sda1 --grub /dev/sda --hostname debian01 --password changeme
Install Debian release bookworm on /dev/sda1 and install bootmanager GRUB in MBR (master boot record) of /dev/sda. Set hostname to debian01 and password for user root to changeme. (yes the password is literally "changeme", please don't ship that to prod π)
grml-debootstrap --target /dev/sda6 --grub /dev/sda --release sid
Install Debian unstable/sid on /dev/sda6 and install bootmanager GRUB in MBR (master boot record) of /dev/sda.
grml-debootstrap --target /dev/sda1 --grub /dev/sda
Install default Debian release (trixie) on /dev/sda1 and install bootmanager GRUB in MBR (master boot record) of /dev/sda. Use mmdebstrap instead of default debootstrap tool for bootstrapping. β¨
grml-debootstrap --target /dev/mapper/vg0-rootfs --grub /dev/sda
Install default Debian release (trixie) on LVM device /dev/mapper/vg0-rootfs and install bootmanager GRUB in MBR (master boot record) of /dev/sda. LVM girlies rise up π
grml-debootstrap --efi /dev/sda1 --target /dev/sda2 --grub /dev/sda
Install default Debian release (trixie) on /dev/sda2 and install bootmanager GRUB in MBR (master boot record) of /dev/sda. Use /dev/sda1 as EFI partition (requires EFI support in the booted system).
mount /dev/sda1 /data/chroot
grml-debootstrap --target /data/chroot
Install default Debian release (trixie) in directory /data/chroot (without any bootloader). no bootloader, no problem π«Ά
grml-debootstrap --target /dev/sda3 --grub /dev/sda --mirror ftp://ftp.tugraz.at/mirror/debian
Install default Debian release (trixie) on /dev/sda3 and install bootmanager GRUB in MBR (master boot record) of /dev/sda. Use specified mirror instead of the default (http://deb.debian.org/debian) one.
mount /dev/sda1 /mnt/sda1
grml-debootstrap --vmfile --imagesize 3G --target /mnt/sda1/qemu.img
Install default debian release (trixie) in a Virtual Machine file with 3GB disk size (including GRUB as bootmanager in MBR of the virtual disk file). VM moment, main character energy for real π§
πΈ FILES πΈ
/etc/debootstrap/configβ Main configuration file. Adjust it according to your needs if you want to executegrml-debootstrapin the non-interactive mode without any special command line arguments. this is the one you edit, bestie π/etc/debootstrap/chroot-scriptβ The script executed within the new Debian system as soon as the main system has been installed via[c]debootstrap./etc/debootstrap/locale.genβ Defines the default locales used for generating locales vialocale-gen./etc/debootstrap/packagesβ Defines the software packages which should be installed in the new Debian system by default./etc/debootstrap/extrapackages/β Debian Packages dropped in this directory will be installed into the new Debian system by default (Control variable:EXTRAPACKAGES).
π CUSTOMIZATION π
You can control execution of grml-debootstrap via adjusting /etc/debootstrap/config for some main stuff, or via setting some selected variables via command line. lowkey two ways to do the same thing, pick your fighter π
The packages which should be installed in the new Debian system can be defined via the file /etc/debootstrap/packages.
If you want to put existing files to the new Debian system you can place them into the (by default non-existing) directories boot, etc, share, usr and var in /etc/debootstrap/. Every existing directory will be copied to the new Debian system then. β¨
If you want to install additional packages that are not available via the Grml or Debian mirror, drop them into /etc/debootstrap/extrapackages and make sure that EXTRAPACKAGES is set to "yes". not me forgetting to set that variable, couldn't be me π
π SUPPORTED RELEASES π
Table 1. Current status
bookwormβ works βtrixieβ works βforkyβ works[1] β οΈsidβ works[1] β οΈ
unstable and testing releases
[1] Please notice that Debian/testing (currently:forky) and Debian/unstable (sid) might not be always installable due to their nature. What might work instead is deploying a stable release and upgrade it after installation finished. fr fr, rolling releases are chaos and we respect it π
π BUGS π
Please report bugs towards https://github.com/grml/grml-debootstrap/issues β the devs are actually nice, go tell them what broke π«Ά
π SEE ALSO π
debootstrap(8), mmdebstrap(1).
π¦ AUTHOR π¦
Michael Prokop <mika@grml.org[2]>
β NOTES β
https://grml.org/grml-debootstrap/images/screenshot.pngmika@grml.org/mailto:mika@grml.org
okay that's the whole page bestie, you're officially a GRML-DEBOOTSTRAP(8) scholar now π
β¨ this cutie is GRML-DEBOOTSTRAP(8), dated 07/31/2026 β screenshot proof over at https://grml.org/grml-debootstrap/images/screenshot.png if you wanna see it in the wild. now go make some partitions and slay ππΈ
π¦ where this page comes from
- ubuntu stonking: grml-debootstrap 0.129 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms