OVERLAY-DISKFILE(8)
π
OVERLAY-DISKFILE β like, the overlay-diskfile(8) manual but make it make sense π
okay bestie, sit down, grab a boba, because today we're talking about overlay-diskfile β a lil support script with main character energy that pre-mounts a diskfile so your subhost has a LOWER or UPPER filesystem to play with. β¨
πΈ NAME πΈ
overlay-diskfile β support for using diskfile filesystems. that's it, that's the vibe. π¦
β¨ SYNOPSIS β¨
overlay-diskfile mount/path [ diskfile [ index ] ]
so like, mount/path is required, and diskfile and index are optional and just hanging out in brackets like the shy friends. π«Ά
π DESCRIPTION π
ngl, overlay-diskfile is a support script β it's not out here doing the whole show, it's the bestie backstage pre-mounting a diskfile so that the subhost gets its LOWER or UPPER filesystem. π
fr fr, you'll usually see it chillin' in the subhost configuration, getting invoked as part of figuring out the filesystem path. it's giving behind the scenes legend. π
π OPTIONS π
no options.
literally none. zero. the script said "I don't need flags, I'm enough." π (when someone says "no options" and people still ask for options... π)
π₯ EXAMPLES π₯
Example 1. Use a whole diskfile filesystem as LOWER
LOWER=!overlay-diskfile mnt/ disk.img
what this does: mounts the disk.img filesystem onto mnt and hands that over as the LOWER filesystem. slay. π
Example 2. Use a diskfile partition 2 as LOWER
LOWER=!overlay-diskfile mnt/ disk.img 2
okay so here we're being picky (respectfully) β this mounts the second partition onto mnt and that becomes the LOWER filesystem. ate. π
Example 3. Use a subtree of a diskfile partition 2 as LOWER
LOWER=!overlay-diskfile mnt/some/path disk.img 2
this mounts the second partition onto mnt, and then the path mnt/some/path is what gets provided as the LOWER filesystem. subtrees are so underrated, iykyk. π§
Example 4. Use second partition diskfile filesystem subtrees for UPPER and WORK
UPPER=!overlay-diskfile mnt/some/upper/path disk.img 2
WORK= mnt/some/work/path
so this mounts the second partition of disk.img and uses mnt/some/upper/path as UPPER and mnt/some/work/path as WORK. π
β οΈ important bestie moment: note that UPPER and WORK must always be subtrees from the same filesystem. no mixing, no matching, no chaos. π«
π SEE ALSO π
overlay-bootoverlay-stop
go read those too, they're part of the friend group. π―
mwah π that's the whole page β OVERLAY-DISKFILE(8), dated 2026-07-12, brought to you by whoever ships this manual. bye bestie, go mount something iconic. πβ¨
π¦ where this page comes from
- ubuntu stonking: overlay-boot 1.6.3-1 Β· 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