Debian and Fedora containers
v3 cover Debian and Fedora containers
This patch describes two containers, Debian and Fedora, with most required packages to build and test/check GRUB. The Containerfile is actually a template which is populated dinamically based on the podman (or docker) commands provided on the INSTALL file so to create the container images, you actually have to copy&paste these commands just one time.
To test the container with latest upstrem, I have executed the following command
$ podman run fedora-grub /grub/check.sh
removing all output log except the test-suite.log, I got the following (you should get exactly the same results as this is a container)
=================================
GRUB 2.13: ./test-suite.log
=================================
# TOTAL: 88
# PASS: 65
# SKIP: 3
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 19
System information (uname -a): Linux 6.15.9-101.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Aug 2 12:38:24 UTC 2025 x86_64
Distribution information (/etc/os-release):
NAME="Fedora Linux"
VERSION="42 (Container Image)"
RELEASE_TYPE=stable
ID=fedora
VERSION_ID=42
VERSION_CODENAME=""
PLATFORM_ID="platform:f42"
PRETTY_NAME="Fedora Linux 42 (Container Image)"
.. contents:: :depth: 2
FAIL: erofs_test
================
1024+0 records in
1024+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00322471 s, 325 MB/s
mkfs.erofs -L "g;/éт 莭😁" -Eforce-inode-compact /tmp/grub-fs-tester.20250919231809691969935.erofs_compact.a8z/erofs_compact_512_4096_1_0.img /tmp/grub-fs-tester.20250919231809691969935.erofs_compact.a8z/master
<E> erofs: invalid volume label
Try 'mkfs.erofs --help' for more information.
mkfs.erofs 1.8.10
FAIL erofs_test (exit status: 1)
ERROR: ext234_test
==================
losetup: /tmp/grub-fs-tester.20250919231809819969810.ext2_old.fUk/ext2_old_256_1024_1_0.img: failed to set up loop device: No such file or directory
losetup: device node /dev/loop0 (7:0) is lost. You may use mknod(1) to recover it.
ERROR ext234_test (exit status: 99)
ERROR: hfsplus_test
===================
losetup: /tmp/grub-fs-tester.20250919232118317496315.hfsplus.eL6/hfsplus_512_512_1_0.img: failed to set up loop device: No such file or directory
losetup: device node /dev/loop0 (7:0) is lost. You may use mknod(1) to recover it.
ERROR hfsplus_test (exit status: 99)
ERROR: ntfs_test
================
losetup: /tmp/grub-fs-tester.20250919232118341556194.ntfs.wju/ntfs_256_512_1_0.img: failed to set up loop device: No such file or directory
losetup: device node /dev/loop0 (7:0) is lost. You may use mknod(1) to recover it.
ERROR ntfs_test (exit status: 99)
ERROR: reiserfs_test
====================
mkfs.reiserfs not installed; cannot test reiserfs.
ERROR reiserfs_test (exit status: 99)
ERROR: fat_test
===============
losetup: /tmp/grub-fs-tester.20250919232118371811059.vfat16a.LsP/vfat16a_512_512_1_0.img: failed to set up loop device: No such file or directory
losetup: device node /dev/loop0 (7:0) is lost. You may use mknod(1) to recover it.
ERROR fat_test (exit status: 99)
ERROR: minixfs_test
===================
losetup: /tmp/grub-fs-tester.20250919232118398197479.minix.oFp/minix_512_512_1_0.img: failed to set up loop device: No such file or directory
losetup: device node /dev/loop0 (7:0) is lost. You may use mknod(1) to recover it.
ERROR minixfs_test (exit status: 99)
ERROR: xfs_test
===============
losetup: /tmp/grub-fs-tester.20250919232118422926195.xfs_crc.jJT/xfs_crc_512_1024_1_0.img: failed to set up loop device: No such file or directory
losetup: device node /dev/loop0 (7:0) is lost. You may use mknod(1) to recover it.
ERROR xfs_test (exit status: 99)
ERROR: f2fs_test
================
losetup: /tmp/grub-fs-tester.20250919232118446273287.f2fs.Pp1/f2fs_512_512_1_0.img: failed to set up loop device: No such file or directory
losetup: device node /dev/loop0 (7:0) is lost. You may use mknod(1) to recover it.
ERROR f2fs_test (exit status: 99)
ERROR: nilfs2_test
==================
losetup: /tmp/grub-fs-tester.20250919232118469197123.nilfs2.0YU/nilfs2_512_4096_1_0.img: failed to set up loop device: No such file or directory
losetup: device node /dev/loop0 (7:0) is lost. You may use mknod(1) to recover it.
ERROR nilfs2_test (exit status: 99)
ERROR: exfat_test
=================
losetup: /tmp/grub-fs-tester.20250919232121043740620.exfat.yLl/exfat_512_512_1_0.img: failed to set up loop device: No such file or directory
losetup: device node /dev/loop0 (7:0) is lost. You may use mknod(1) to recover it.
ERROR exfat_test (exit status: 99)
ERROR: udf_test
===============
losetup: /tmp/grub-fs-tester.20250919232123672240022.udf.Plv/udf_512_1024_1_0.img: failed to set up loop device: No such file or directory
losetup: device node /dev/loop0 (7:0) is lost. You may use mknod(1) to recover it.
ERROR udf_test (exit status: 99)
ERROR: hfs_test
===============
mkfs.hfs not installed; cannot test HFS.
ERROR hfs_test (exit status: 99)
ERROR: jfs_test
===============
losetup: /tmp/grub-fs-tester.20250919232123699424716.jfs.k78/jfs_512_512_1_0.img: failed to set up loop device: No such file or directory
losetup: device node /dev/loop0 (7:0) is lost. You may use mknod(1) to recover it.
ERROR jfs_test (exit status: 99)
ERROR: btrfs_test
=================
losetup: /tmp/grub-fs-tester.20250919232123725943375.btrfs.WWS/btrfs_4096_512_1_0.img: failed to set up loop device: No such file or directory
losetup: device node /dev/loop0 (7:0) is lost. You may use mknod(1) to recover it.
ERROR btrfs_test (exit status: 99)
ERROR: zfs_test
===============
losetup: /tmp/grub-fs-tester.20250919232123750030765.zfs.0zf/zfs_512_512_1_0.img: failed to set up loop device: No such file or directory
losetup: device node /dev/loop0 (7:0) is lost. You may use mknod(1) to recover it.
ERROR zfs_test (exit status: 99)
ERROR: luks1_test
=================
losetup: /tmp/grub-fs-tester.20250919232143344935679.luks1.beR/luks1_512_512_1_0.img: failed to set up loop device: No such file or directory
losetup: device node /dev/loop0 (7:0) is lost. You may use mknod(1) to recover it.
ERROR luks1_test (exit status: 99)
ERROR: luks2_test
=================
losetup: /tmp/grub-fs-tester.20250919232143400044297.luks2.MDj/luks2_512_512_1_0.img: failed to set up loop device: No such file or directory
losetup: device node /dev/loop0 (7:0) is lost. You may use mknod(1) to recover it.
ERROR luks2_test (exit status: 99)
SKIP: tpm2_key_protector_test
=============================
SKIP tpm2_key_protector_test (exit status: 77)
ERROR: grub_cmd_cryptomount
===========================
Note: Temporary directory cannot be removed:
/tmp/1758324145.LUKS1_test_cryptsetup_defaults
Please inspect and remove manually.
Error[23]: Cannot initialize device-mapper. Is dm_mod kernel module loaded?
Cannot use device grub-shell-luks-tester.LpsdRVbEBf, name is invalid or still in use.
Cannot initialize device-mapper. Is dm_mod kernel module loaded?
Cannot use device grub-shell-luks-tester.LpsdRVbEBf, name is invalid or still in use.
LUKS1 test cryptsetup defaults: ERROR
ERROR grub_cmd_cryptomount (exit status: 99)
SKIP: pseries_test
==================
SKIP pseries_test (exit status: 77)
SKIP: core_compress_test
========================
SKIP core_compress_test (exit status: 77)
ERROR: grub_func_test
=====================
Functional test requires grub-mkfont support
ERROR grub_func_test (exit status: 99)There are some efforts to fix some tests [1,2] but as seen above there are others to be addressed when running checks on containers, specially those involving loopback devices.
[1] https://lists.nongnu.org/archive/html/grub-devel/2025-08/msg00249.html
[2] https://lists.gnu.org/archive/html/grub-devel/2025-09/msg00190.html
Leo Sandoval (1):
Define a Containerfile and instructions to build distro images
INSTALL | 158 ++++++++++++++++++++++++++++++++++++++++ container/Containerfile | 16 ++++ container/check.sh | 18 +++++ 3 files changed, 192 insertions(+) create mode 100644 container/Containerfile create mode 100644 container/check.sh
Signature · 7 lines
2.50.1 _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
PATCH v3 1/1 Define a Containerfile and instructions to build distro images
Containers bring the ability to have ready-to-use environments isolated completely from the build environment. Once users manually build it, they can launch the desired container, jump into it and have a setup ready for development. On the other hand, if users prefer to use bare metal instead of a containerized environment, it is still useful to have a the full list of the required packages.
--- INSTALL | 158 ++++++++++++++++++++++++++++++++++++++++ container/Containerfile | 16 ++++ container/check.sh | 18 +++++ 3 files changed, 192 insertions(+) create mode 100644 container/Containerfile create mode 100644 container/check.sh
INSTALL +158 -0
@@ -109,6 +109,13 @@ To use the gdb_grub GDB script you'll need: * GNU Debugger > 7, built with python support (gdb package) * Python >= 3.5 (python3 package) +To easier the task of package installation, the Container section list +the above packages per distribution (see the command line examples, the +--build-arg PKGS argument on the podman build command). In case the installation +of these packages is not possible on your host, one can rely on containers which +are ready-to-use container images for GRUB development. For more informacion see +Container section. + Configuring the GRUB ====================
@@ -358,3 +365,154 @@ operates. `--version' Print the version of Autoconf used to generate the `configure' script, and exit. + +Container +========= + +Containers bring the ability to have ready-to-use environments isolated completely +from the build environment. Once users manually build it, they can launch the desired +container, jump into it and have a setup ready for development. On the other hand, if users +prefer to use bare metal instead of a containerized environment, it is still useful to have a +the full list of the required packages. + +Assuming your build OS support containers, e.g. all Linux distros, install 'podman' on +your favorite distro, move into the container folder then build a specific distro image with + +$ cd container +$ podman build \ + --build-arg BASE_IMAGE=fedora \ + --build-arg PKG_MANAGER=dnf \ + --build-arg PKGS="\ + attr \ + autoconf \ + automake \ + autopoint \ + bison \ + btrfs-progs \ + cpio \ + cryptsetup \ + dosfstools \ + e2fsprogs \ + edk2-ovmf \ + edk2-ovmf-ia32 \ + erofs-utils \ + exfatprogs \ + f2fs-tools \ + flex \ + gawk \ + genromfs \ + gettext \ + git \ + hfsplus-tools \ + jfsutils \ + libtool \ + lzop \ + make \ + mtools \ + nilfs-utils \ + ntfsprogs \ + parted \ + patch \ + pkg-config \ + python3 \ + qemu-system-arm \ + qemu-system-aarch64 \ + qemu-system-riscv \ + qemu-system-x86 \ + rsync \ + squashfs-tools \ + swtpm-tools \ + texinfo \ + texinfo-tex \ + texlive \ + tpm2-tools \ + udftools \ + unifont \ + unifont-fonts \ + which \ + words \ + xfsprogs \ + xorriso \ + zfs-fuse" \ + -t fedora-grub . + +or in case you prefer Debian + +$ cd container +$ podman build \ + --build-arg BASE_IMAGE=debian \ + --build-arg PKG_MANAGER=apt \ + --build-arg PKGS="\ + attr \ + autoconf \ + automake \ + autopoint \ + bison \ + btrfs-progs \ + cpio \ + cryptsetup \ + dosfstools \ + e2fsprogs \ + erofs-utils \ + exfatprogs \ + f2fs-tools \ + flex \ + gawk \ + genromfs \ + gettext \ + git \ + hfsplus \ + jfsutils \ + libtool \ + lzop \ + make \ + mtools \ + nilfs-tools \ + ntfs-3g \ + ovmf \ + ovmf-ia32 \ + parted \ + patch \ + pkg-config \ + python3 \ + qemu-efi-aarch64 \ + qemu-efi-arm \ + qemu-system \ + rsync \ + squashfs-tools \ + swtpm-tools \ + texinfo \ + texlive \ + tpm2-tools \ + udftools \ + unifont \ + wamerican \ + which \ + xfonts-unifont \ + xfsprogs \ + xorriso \ + zfs-fuse" \ + -t debian-grub . + +once built, you can run/launch any of the aboven + +$ podman run -it fedora-grub + +or + +$ podman run -it debian-grub + +and execute the standard build/test commands inside it, e.g + + # ./linguas.sh + # ./bootstrap + # ./configure + # make + # make html + # make pdf + # make check + +The above commands are collected in a single script inside the container called 'check.sh' +and can be useful as sanity check for testing latest upstream changes with + +$ podman run fedora-grub /grub/check.sh
container/Containerfile new file +16 -0
@@ -0,0 +1,16 @@ +ARG BASE_IMAGE +FROM ${BASE_IMAGE} + +ARG PKG_MANAGER +ARG PKGS +ARG GIT_CLONE_DEPTH=1 +ARG GRUB_REPO=https://git.savannah.gnu.org/git/grub.git +ARG GRUB_DIR=/grub + +RUN $PKG_MANAGER update -y && $PKG_MANAGER install -y ${PKGS} +RUN git clone --depth ${GIT_CLONE_DEPTH} ${GRUB_REPO} ${GRUB_DIR} + +WORKDIR ${GRUB_DIR} + +COPY check.sh . +RUN chmod +x check.sh
container/check.sh new file +18 -0
@@ -0,0 +1,18 @@ +#! /bin/sh + +set -e +set -x + +cd /grub + +./linguas.sh +./bootstrap +./configure +make +make html +make pdf +make check || true + +if [ -f test-suite.log ]; then + cat test-suite.log +fi
Signature · 7 lines
2.50.1 _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
Re: [PATCH V3 1/1] Define a Containerfile and instructions to build distro images
Looks good to me, thanks.
Quoted 237 lines · Leo Sandoval
Containers bring the ability to have ready-to-use environments isolated completely from the build environment. Once users manually build it, they can launch the desired container, jump into it and have a setup ready for development. On the other hand, if users prefer to use bare metal instead of a containerized environment, it is still useful to have a the full list of the required packages.
Signed-off-by Leo Sandoval <[email protected]>--- INSTALL | 158 ++++++++++++++++++++++++++++++++++++++++ container/Containerfile | 16 ++++ container/check.sh | 18 +++++ 3 files changed, 192 insertions(+) create mode 100644 container/Containerfile create mode 100644 container/check.shINSTALL +158
-0@@ -109,6 +109,13 @@ To use the gdb_grub GDB script you'll need: * GNU Debugger > 7, built with python support (gdb package) * Python >= 3.5 (python3 package) +To easier the task of package installation, the Container section list +the above packages per distribution (see the command line examples, the +--build-arg PKGS argument on the podman build command). In case the installation +of these packages is not possible on your host, one can rely on containers which +are ready-to-use container images for GRUB development. For more informacion see +Container section. + Configuring the GRUB ====================@@ -358,3 +365,154 @@ operates. `--version' Print the version of Autoconf used to generate the `configure' script, and exit. + +Container +========= + +Containers bring the ability to have ready-to-use environments isolated completely +from the build environment. Once users manually build it, they can launch the desired +container, jump into it and have a setup ready for development. On the other hand, if users +prefer to use bare metal instead of a containerized environment, it is still useful to have a +the full list of the required packages. + +Assuming your build OS support containers, e.g. all Linux distros, install 'podman' on +your favorite distro, move into the container folder then build a specific distro image with + +$ cd container +$ podman build \ + --build-arg BASE_IMAGE=fedora \ + --build-arg PKG_MANAGER=dnf \ + --build-arg PKGS="\ + attr \ + autoconf \ + automake \ + autopoint \ + bison \ + btrfs-progs \ + cpio \ + cryptsetup \ + dosfstools \ + e2fsprogs \ + edk2-ovmf \ + edk2-ovmf-ia32 \ + erofs-utils \ + exfatprogs \ + f2fs-tools \ + flex \ + gawk \ + genromfs \ + gettext \ + git \ + hfsplus-tools \ + jfsutils \ + libtool \ + lzop \ + make \ + mtools \ + nilfs-utils \ + ntfsprogs \ + parted \ + patch \ + pkg-config \ + python3 \ + qemu-system-arm \ + qemu-system-aarch64 \ + qemu-system-riscv \ + qemu-system-x86 \ + rsync \ + squashfs-tools \ + swtpm-tools \ + texinfo \ + texinfo-tex \ + texlive \ + tpm2-tools \ + udftools \ + unifont \ + unifont-fonts \ + which \ + words \ + xfsprogs \ + xorriso \ + zfs-fuse" \ + -t fedora-grub . + +or in case you prefer Debian + +$ cd container +$ podman build \ + --build-arg BASE_IMAGE=debian \ + --build-arg PKG_MANAGER=apt \ + --build-arg PKGS="\ + attr \ + autoconf \ + automake \ + autopoint \ + bison \ + btrfs-progs \ + cpio \ + cryptsetup \ + dosfstools \ + e2fsprogs \ + erofs-utils \ + exfatprogs \ + f2fs-tools \ + flex \ + gawk \ + genromfs \ + gettext \ + git \ + hfsplus \ + jfsutils \ + libtool \ + lzop \ + make \ + mtools \ + nilfs-tools \ + ntfs-3g \ + ovmf \ + ovmf-ia32 \ + parted \ + patch \ + pkg-config \ + python3 \ + qemu-efi-aarch64 \ + qemu-efi-arm \ + qemu-system \ + rsync \ + squashfs-tools \ + swtpm-tools \ + texinfo \ + texlive \ + tpm2-tools \ + udftools \ + unifont \ + wamerican \ + which \ + xfonts-unifont \ + xfsprogs \ + xorriso \ + zfs-fuse" \ + -t debian-grub . + +once built, you can run/launch any of the aboven + +$ podman run -it fedora-grub + +or + +$ podman run -it debian-grub + +and execute the standard build/test commands inside it, e.g + + # ./linguas.sh + # ./bootstrap + # ./configure + # make + # make html + # make pdf + # make check + +The above commands are collected in a single script inside the container called 'check.sh' +and can be useful as sanity check for testing latest upstream changes with + +$ podman run fedora-grub /grub/check.shcontainer/Containerfile new file +16
-0@@ -0,0 +1,16 @@ +ARG BASE_IMAGE +FROM ${BASE_IMAGE} + +ARG PKG_MANAGER +ARG PKGS +ARG GIT_CLONE_DEPTH=1 +ARG GRUB_REPO=https://git.savannah.gnu.org/git/grub.git +ARG GRUB_DIR=/grub + +RUN $PKG_MANAGER update -y && $PKG_MANAGER install -y ${PKGS} +RUN git clone --depth ${GIT_CLONE_DEPTH} ${GRUB_REPO} ${GRUB_DIR} + +WORKDIR ${GRUB_DIR} + +COPY check.sh . +RUN chmod +x check.shcontainer/check.sh new file +18
-1@@ -0,0 +1,18 @@ +#! /bin/sh + +set -e +set -x + +cd /grub + +./linguas.sh +./bootstrap +./configure +make +make html +make pdf +make check || true + +if [ -f test-suite.log ]; then + cat test-suite.log +fi --
Quoted 2 lines
2.50.1
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
Re: [PATCH V3 1/1] Define a Containerfile and instructions to build distro images
In reply to Leo Sandoval via Grub-develQuoted 21 lines · Leo Sandoval via Grub-devel
Containers bring the ability to have ready-to-use environments isolated completely from the build environment. Once users manually build it, they can launch the desired container, jump into it and have a setup ready for development. On the other hand, if users prefer to use bare metal instead of a containerized environment, it is still useful to have a the full list of the required packages.
Signed-off-by Leo Sandoval <[email protected]>--- INSTALL | 158 ++++++++++++++++++++++++++++++++++++++++ container/Containerfile | 16 ++++ container/check.sh | 18 +++++ 3 files changed, 192 insertions(+) create mode 100644 container/Containerfile create mode 100644 container/check.shINSTALL +0
-0
INSTALL To use the gdb_grub GDB script you'll need: · line 112
Quoted 4 lines
INSTALL +1
-0@@ -109,6 +109,13 @@ To use the gdb_grub GDB script you'll need: * GNU Debugger > 7, built with python support (gdb package) * Python >= 3.5 (python3 package) +To easier the task of package installation, the Container section list
s/easier/ease/
Quoted 15 lines
INSTALL +8
-0+the above packages per distribution (see the command line examples, the +--build-arg PKGS argument on the podman build command). In case the installation +of these packages is not possible on your host, one can rely on containers which +are ready-to-use container images for GRUB development. For more informacion see +Container section. + Configuring the GRUB ====================@@ -358,3 +365,154 @@ operates. `--version' Print the version of Autoconf used to generate the `configure' script, and exit. + +Container
INSTALL operates. · line 379
Quoted 10 lines
INSTALL +10
-0+========= + +Containers bring the ability to have ready-to-use environments isolated completely +from the build environment. Once users manually build it, they can launch the desired +container, jump into it and have a setup ready for development. On the other hand, if users +prefer to use bare metal instead of a containerized environment, it is still useful to have a +the full list of the required packages. + +Assuming your build OS support containers, e.g. all Linux distros, install 'podman' on +your favorite distro, move into the container folder then build a specific distro image with
I think you should mention here that the command below is for Fedora.
Quoted 32 lines
INSTALL +32
-0+$ cd container +$ podman build \ + --build-arg BASE_IMAGE=fedora \ + --build-arg PKG_MANAGER=dnf \ + --build-arg PKGS="\ + attr \ + autoconf \ + automake \ + autopoint \ + bison \ + btrfs-progs \ + cpio \ + cryptsetup \ + dosfstools \ + e2fsprogs \ + edk2-ovmf \ + edk2-ovmf-ia32 \ + erofs-utils \ + exfatprogs \ + f2fs-tools \ + flex \ + gawk \ + genromfs \ + gettext \ + git \ + hfsplus-tools \ + jfsutils \ + libtool \ + lzop \ + make \ + mtools \ + nilfs-utils \
INSTALL operates. · line 422
Quoted 10 lines
INSTALL +10
-0+ ntfsprogs \ + parted \ + patch \ + pkg-config \ + python3 \ + qemu-system-arm \ + qemu-system-aarch64 \ + qemu-system-riscv \ + qemu-system-x86 \ + rsync \
Please fix indention here.
INSTALL operates. · line 426
Quoted 4 lines
INSTALL +4
-0+ squashfs-tools \ + swtpm-tools \ + texinfo \ + texinfo-tex \
Ditto.
Quoted 45 lines
INSTALL +45
-0+ texlive \ + tpm2-tools \ + udftools \ + unifont \ + unifont-fonts \ + which \ + words \ + xfsprogs \ + xorriso \ + zfs-fuse" \ + -t fedora-grub . + +or in case you prefer Debian + +$ cd container +$ podman build \ + --build-arg BASE_IMAGE=debian \ + --build-arg PKG_MANAGER=apt \ + --build-arg PKGS="\ + attr \ + autoconf \ + automake \ + autopoint \ + bison \ + btrfs-progs \ + cpio \ + cryptsetup \ + dosfstools \ + e2fsprogs \ + erofs-utils \ + exfatprogs \ + f2fs-tools \ + flex \ + gawk \ + genromfs \ + gettext \ + git \ + hfsplus \ + jfsutils \ + libtool \ + lzop \ + make \ + mtools \ + nilfs-tools \ + ntfs-3g \
INSTALL operates. · line 481
Quoted 10 lines
INSTALL +10
-0+ ovmf \ + ovmf-ia32 \ + parted \ + patch \ + pkg-config \ + python3 \ + qemu-efi-aarch64 \ + qemu-efi-arm \ + qemu-system \ + rsync \
Ditto.
INSTALL operates. · line 494
Quoted 13 lines
INSTALL +13
-0+ squashfs-tools \ + swtpm-tools \ + texinfo \ + texlive \ + tpm2-tools \ + udftools \ + unifont \ + wamerican \ + which \ + xfonts-unifont \ + xfsprogs \ + xorriso \ + zfs-fuse" \
It seems to me the list of packages for Debian is not consistent with what is currently in the INSTALL file. Is it? Anyway, I think both should be checked and Fedora and Debian users should be pointed from relevant section to the commands building relevant containers and easy to get list of packages.
Quoted 52 lines
INSTALL +24
-0+ -t debian-grub . + +once built, you can run/launch any of the aboven + +$ podman run -it fedora-grub + +or + +$ podman run -it debian-grub + +and execute the standard build/test commands inside it, e.g + + # ./linguas.sh + # ./bootstrap + # ./configure + # make + # make html + # make pdf + # make check + +The above commands are collected in a single script inside the container called 'check.sh' +and can be useful as sanity check for testing latest upstream changes with + +$ podman run fedora-grub /grub/check.shcontainer/Containerfile new file +16
-0@@ -0,0 +1,16 @@ +ARG BASE_IMAGE +FROM ${BASE_IMAGE} + +ARG PKG_MANAGER +ARG PKGS +ARG GIT_CLONE_DEPTH=1 +ARG GRUB_REPO=https://git.savannah.gnu.org/git/grub.git +ARG GRUB_DIR=/grub + +RUN $PKG_MANAGER update -y && $PKG_MANAGER install -y ${PKGS} +RUN git clone --depth ${GIT_CLONE_DEPTH} ${GRUB_REPO} ${GRUB_DIR} + +WORKDIR ${GRUB_DIR} + +COPY check.sh . +RUN chmod +x check.shcontainer/check.sh new file +0
-0
container/check.sh line 4
Quoted 4 lines
container/check.sh new file +4
-0@@ -0,0 +1,18 @@ +#! /bin/sh + +set -e +set -x
#!/bin/sh -ex
... and you are done
container/check.sh line 6
Quoted 2 lines
container/check.sh new file +2
-0+ +cd /grub
This will not work on baremetal machine...
container/check.sh line 18
Quoted 11 lines
container/check.sh new file +11
-0+./linguas.sh +./bootstrap +./configure +make +make html +make pdf +make check || true + +if [ -f test-suite.log ]; then + cat test-suite.log +fi
Daniel
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel