Handle filesystems loop-mounted on file images
authorColin Watson <cjwatson@debian.org>
Mon, 13 Jan 2014 12:13:00 +0000 (12:13 +0000)
committerFelix Zielcke <fzielcke@z-51.de>
Mon, 15 Jul 2024 15:05:20 +0000 (17:05 +0200)
commit24f36a7f86aa6024adbc11bc9a9cc462774198d5
treef50f2c9fbdf9400910c50e2b0f33e18b25f27520
parentcc8eade9d4d23fd8ad43d0ab1990031452119e12
Handle filesystems loop-mounted on file images

Improve prepare_grub_to_access_device to emit appropriate commands for
such filesystems, and ignore them in Linux grub.d scripts.

This is needed for Ubuntu's Wubi installation method.

This patch isn't inherently Debian/Ubuntu-specific.  losetup and
/proc/mounts are Linux-specific, though, so we might need to refine this
before sending it upstream.  The changes to the Linux grub.d scripts
might be better handled by integrating 10_lupin properly instead.

Patch-Name: mkconfig-loopback.patch

Gbp-Pq: Name mkconfig-loopback.patch
util/grub-mkconfig_lib.in
util/grub.d/10_linux.in
util/grub.d/20_linux_xen.in