Skip to contentSkip to conversation

Create a Containerfile with required grub packages for development

PATCH Superseded Leo Sandoval via Grub-devel 4 participants 7 messages Jun 9, 2025 – Jun 18, 2025

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Create a Containerfile with required grub packages for development

Containers bring the ability to have ready-to-use environments and in this case a complete Fedora container file is described containing all required packages for building and testing grub2.

Once users manually build it, they can run the container jump into 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 file explicitly indicating the required packages.

---
 container/Containerfile | 54 +++++++++++++++++++++++++++++++++++++++++
 container/README        | 14 +++++++++++
 2 files changed, 68 insertions(+)
 create mode 100644 container/Containerfile
 create mode 100644 container/README
container/Containerfile new file +54 -0
new file mode 100644
index 0000000000..dd066a2ce1
@@ -0,0 +1,54 @@
+FROM registry.fedoraproject.org/fedora
+
+# Install required packages
+RUN dnf update -y && \
+    dnf install -y \
+        attr \
+        autoconf \
+        automake \
+        autopoint \
+        bison \
+        btrfs-progs \
+        cpio \
+        cryptsetup \
+        dosfstools \
+        e2fsprogs \
+        edk2-ovmf \
+        edk2-ovmf-ia32 \
+        erofs-utils \
+        exfatprogs \
+        f2fs-tools \
+        flex \
+        gawk \
+        gettext \
+        genromfs \
+        git \
+        hfsplus-tools \
+        jfsutils \
+        libtool \
+        lzop \
+        make \
+        mtools \
+        nilfs-utils \
+        ntfsprogs \
+        parted \
+        patch \
+        pkg-config \
+        python3 \
+        qemu-system-x86 \
+        squashfs-tools \
+        swtpm-tools \
+        tpm2-tools \
+        udftools \
+        unifont \
+        unifont-fonts \
+        which \
+        words \
+        xfsprogs \
+        xorriso \
+        zfs-fuse
+
+# clone tip of grub repository
+RUN git clone --depth 1 https://https.git.savannah.gnu.org/git/grub.git /grub
+
+WORKDIR /grub
\ No newline at end of file
container/README new file +14 -0
new file mode 100644
index 0000000000..788992abb9
@@ -0,0 +1,14 @@
+install `podman` on your favorite distro then build it with
+
+$ podman build --tag grub .
+
+once built, you can run/launch it
+
+$ podman run -it grub
+
+and execute the standard build/test commands inside it
+
+# ./bootstrap
+# ./configure
+# ./make
+# ./make check
\ No newline at end of file
Signature · 7 lines
2.48.1


_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines

Containers bring the ability to have ready-to-use environments and in this case a complete Fedora container file is described containing all required packages for building and testing grub2.

Once users manually build it, they can run the container jump into 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 file explicitly indicating the required packages.

This is a good idea, seems helpful to people who distribute / package GRUB or want to help contribute.

I tested it out quickly and it worked for me.

Thanks,
Andrew

Quoted 102 lines · Leo Sandoval via Grub-devel

Containers bring the ability to have ready-to-use environments and in this case a complete Fedora container file is described containing all required packages for building and testing grub2.

Once users manually build it, they can run the container jump into 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 file explicitly indicating the required packages.

---
 container/Containerfile | 54 +++++++++++++++++++++++++++++++++++++++++
 container/README        | 14 +++++++++++
 2 files changed, 68 insertions(+)
 create mode 100644 container/Containerfile
 create mode 100644 container/README
container/Containerfile new file +52 -0
new file mode 100644
index 0000000000..dd066a2ce1
@@ -0,0 +1,54 @@
+FROM registry.fedoraproject.org/fedora
+
+# Install required packages
+RUN dnf update -y && \
+    dnf install -y \
+        attr \
+        autoconf \
+        automake \
+        autopoint \
+        bison \
+        btrfs-progs \
+        cpio \
+        cryptsetup \
+        dosfstools \
+        e2fsprogs \
+        edk2-ovmf \
+        edk2-ovmf-ia32 \
+        erofs-utils \
+        exfatprogs \
+        f2fs-tools \
+        flex \
+        gawk \
+        gettext \
+        genromfs \
+        git \
+        hfsplus-tools \
+        jfsutils \
+        libtool \
+        lzop \
+        make \
+        mtools \
+        nilfs-utils \
+        ntfsprogs \
+        parted \
+        patch \
+        pkg-config \
+        python3 \
+        qemu-system-x86 \
+        squashfs-tools \
+        swtpm-tools \
+        tpm2-tools \
+        udftools \
+        unifont \
+        unifont-fonts \
+        which \
+        words \
+        xfsprogs \
+        xorriso \
+        zfs-fuse
+
+# clone tip of grub repository
+RUN git clone --depth 1 https://https.git.savannah.gnu.org/git/grub.git

/grub

container/Containerfile new file +2 -0
+
+WORKDIR /grub
\ No newline at end of file
container/README new file +14 -1
new file mode 100644
index 0000000000..788992abb9
@@ -0,0 +1,14 @@
+install `podman` on your favorite distro then build it with
+
+$ podman build --tag grub .
+
+once built, you can run/launch it
+
+$ podman run -it grub
+
+and execute the standard build/test commands inside it
+
+# ./bootstrap
+# ./configure
+# ./make
+# ./make check
\ No newline at end of file
--

2.48.1

Quoted 5 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Reviewed-by on v1 1/1
#2 lore raw
In reply to Leo Sandoval via Grub-devel
Quoted 9 lines · Leo Sandoval via Grub-devel

Containers bring the ability to have ready-to-use environments and in this case a complete Fedora container file is described containing all required packages for building and testing grub2.

Once users manually build it, they can run the container jump into 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 file explicitly indicating the required packages.

This looks great to me.

Signature · 6 lines
真実はいつも一つ!/ Always, there's only one truth!

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
#3 lore raw
In reply to Leo Sandoval via Grub-devel

I'm unsure about favouring one distro over the other on this. Another thing: it misses arm and riscv efis in its package list

Regards
Vladimir 'phcoder' Serbinenko

Quoted 102 lines · Leo Sandoval via Grub-devel

Containers bring the ability to have ready-to-use environments and in this case a complete Fedora container file is described containing all required packages for building and testing grub2.

Once users manually build it, they can run the container jump into 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 file explicitly indicating the required packages.

---
 container/Containerfile | 54 +++++++++++++++++++++++++++++++++++++++++
 container/README        | 14 +++++++++++
 2 files changed, 68 insertions(+)
 create mode 100644 container/Containerfile
 create mode 100644 container/README
container/Containerfile new file +52 -0
new file mode 100644
index 0000000000..dd066a2ce1
@@ -0,0 +1,54 @@
+FROM registry.fedoraproject.org/fedora
+
+# Install required packages
+RUN dnf update -y && \
+    dnf install -y \
+        attr \
+        autoconf \
+        automake \
+        autopoint \
+        bison \
+        btrfs-progs \
+        cpio \
+        cryptsetup \
+        dosfstools \
+        e2fsprogs \
+        edk2-ovmf \
+        edk2-ovmf-ia32 \
+        erofs-utils \
+        exfatprogs \
+        f2fs-tools \
+        flex \
+        gawk \
+        gettext \
+        genromfs \
+        git \
+        hfsplus-tools \
+        jfsutils \
+        libtool \
+        lzop \
+        make \
+        mtools \
+        nilfs-utils \
+        ntfsprogs \
+        parted \
+        patch \
+        pkg-config \
+        python3 \
+        qemu-system-x86 \
+        squashfs-tools \
+        swtpm-tools \
+        tpm2-tools \
+        udftools \
+        unifont \
+        unifont-fonts \
+        which \
+        words \
+        xfsprogs \
+        xorriso \
+        zfs-fuse
+
+# clone tip of grub repository
+RUN git clone --depth 1 https://https.git.savannah.gnu.org/git/grub.git

/grub

container/Containerfile new file +2 -0
+
+WORKDIR /grub
\ No newline at end of file
container/README new file +14 -1
new file mode 100644
index 0000000000..788992abb9
@@ -0,0 +1,14 @@
+install `podman` on your favorite distro then build it with
+
+$ podman build --tag grub .
+
+once built, you can run/launch it
+
+$ podman run -it grub
+
+and execute the standard build/test commands inside it
+
+# ./bootstrap
+# ./configure
+# ./make
+# ./make check
\ No newline at end of file
--

2.48.1

Quoted 5 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#4 lore raw
Quoted 3 lines · Vladimir 'phcoder' Serbinenko

I'm unsure about favouring one distro over the other on this. Another thing: it misses arm and riscv efis in its package list

you mean creating a distroless container?

Although not explicitly indicated, this image is intended for x64 archs and this is why I did not include non-x64 packages but I can include them for completeness..

Quoted 109 lines

Regards
Vladimir 'phcoder' Serbinenko

Quoted 102 lines · Leo Sandoval via Grub-devel

Containers bring the ability to have ready-to-use environments and in this case a complete Fedora container file is described containing all required packages for building and testing grub2.

Once users manually build it, they can run the container jump into 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 file explicitly indicating the required packages.

---
 container/Containerfile | 54 +++++++++++++++++++++++++++++++++++++++++
 container/README        | 14 +++++++++++
 2 files changed, 68 insertions(+)
 create mode 100644 container/Containerfile
 create mode 100644 container/README
container/Containerfile new file +52 -0
new file mode 100644
index 0000000000..dd066a2ce1
@@ -0,0 +1,54 @@
+FROM registry.fedoraproject.org/fedora
+
+# Install required packages
+RUN dnf update -y && \
+    dnf install -y \
+        attr \
+        autoconf \
+        automake \
+        autopoint \
+        bison \
+        btrfs-progs \
+        cpio \
+        cryptsetup \
+        dosfstools \
+        e2fsprogs \
+        edk2-ovmf \
+        edk2-ovmf-ia32 \
+        erofs-utils \
+        exfatprogs \
+        f2fs-tools \
+        flex \
+        gawk \
+        gettext \
+        genromfs \
+        git \
+        hfsplus-tools \
+        jfsutils \
+        libtool \
+        lzop \
+        make \
+        mtools \
+        nilfs-utils \
+        ntfsprogs \
+        parted \
+        patch \
+        pkg-config \
+        python3 \
+        qemu-system-x86 \
+        squashfs-tools \
+        swtpm-tools \
+        tpm2-tools \
+        udftools \
+        unifont \
+        unifont-fonts \
+        which \
+        words \
+        xfsprogs \
+        xorriso \
+        zfs-fuse
+
+# clone tip of grub repository
+RUN git clone --depth 1 https://https.git.savannah.gnu.org/git/grub.git

/grub

container/Containerfile new file +2 -0
+
+WORKDIR /grub
\ No newline at end of file
container/README new file +14 -1
new file mode 100644
index 0000000000..788992abb9
@@ -0,0 +1,14 @@
+install `podman` on your favorite distro then build it with
+
+$ podman build --tag grub .
+
+once built, you can run/launch it
+
+$ podman run -it grub
+
+and execute the standard build/test commands inside it
+
+# ./bootstrap
+# ./configure
+# ./make
+# ./make check
\ No newline at end of file
--

2.48.1

Quoted 6 lines
Quoted 5 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#5 lore raw

If it’d help I can take a crack at making a second container file for a different distribution to cover more users- maybe Debian?

Thanks,
Andrew

Quoted 130 lines · Leo Sandoval via Grub-devel
Quoted 3 lines · Vladimir 'phcoder' Serbinenko

I'm unsure about favouring one distro over the other on this. Another thing: it misses arm and riscv efis in its package list

you mean creating a distroless container?

Although not explicitly indicated, this image is intended for x64 archs and this is why I did not include non-x64 packages but I can include them for completeness..

Quoted 109 lines

Regards
Vladimir 'phcoder' Serbinenko

Quoted 102 lines · Leo Sandoval via Grub-devel

Containers bring the ability to have ready-to-use environments and in this case a complete Fedora container file is described containing all required packages for building and testing grub2.

Once users manually build it, they can run the container jump into 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 file explicitly indicating the required packages.

---
 container/Containerfile | 54 +++++++++++++++++++++++++++++++++++++++++
 container/README        | 14 +++++++++++
 2 files changed, 68 insertions(+)
 create mode 100644 container/Containerfile
 create mode 100644 container/README
container/Containerfile new file +52 -0
new file mode 100644
index 0000000000..dd066a2ce1
@@ -0,0 +1,54 @@
+FROM registry.fedoraproject.org/fedora
+
+# Install required packages
+RUN dnf update -y && \
+    dnf install -y \
+        attr \
+        autoconf \
+        automake \
+        autopoint \
+        bison \
+        btrfs-progs \
+        cpio \
+        cryptsetup \
+        dosfstools \
+        e2fsprogs \
+        edk2-ovmf \
+        edk2-ovmf-ia32 \
+        erofs-utils \
+        exfatprogs \
+        f2fs-tools \
+        flex \
+        gawk \
+        gettext \
+        genromfs \
+        git \
+        hfsplus-tools \
+        jfsutils \
+        libtool \
+        lzop \
+        make \
+        mtools \
+        nilfs-utils \
+        ntfsprogs \
+        parted \
+        patch \
+        pkg-config \
+        python3 \
+        qemu-system-x86 \
+        squashfs-tools \
+        swtpm-tools \
+        tpm2-tools \
+        udftools \
+        unifont \
+        unifont-fonts \
+        which \
+        words \
+        xfsprogs \
+        xorriso \
+        zfs-fuse
+
+# clone tip of grub repository
+RUN git clone --depth 1 https://https.git.savannah.gnu.org/git/grub.git

/grub

container/Containerfile new file +2 -0
+
+WORKDIR /grub
\ No newline at end of file
container/README new file +14 -1
new file mode 100644
index 0000000000..788992abb9
@@ -0,0 +1,14 @@
+install `podman` on your favorite distro then build it with
+
+$ podman build --tag grub .
+
+once built, you can run/launch it
+
+$ podman run -it grub
+
+and execute the standard build/test commands inside it
+
+# ./bootstrap
+# ./configure
+# ./make
+# ./make check
\ No newline at end of file
--

2.48.1

Quoted 6 lines
Quoted 5 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________

Quoted 4 lines

Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#6 lore raw
Quoted 3 lines · Andrew Hamilton

If it’d help I can take a crack at making a second container file for a different distribution to cover more users- maybe Debian?

makes sense. I already had it for debian but untested so let me just double check all is fine and send a v2 version together with Vlaadimir's suggested changes.

Quoted 142 lines

Thanks,
Andrew

Quoted 134 lines · Leo Sandoval via Grub-devel
Quoted 3 lines · Vladimir 'phcoder' Serbinenko

I'm unsure about favouring one distro over the other on this. Another thing: it misses arm and riscv efis in its package list

you mean creating a distroless container?

Although not explicitly indicated, this image is intended for x64 archs and this is why I did not include non-x64 packages but I can include them for completeness..

Quoted 109 lines

Regards
Vladimir 'phcoder' Serbinenko

Quoted 102 lines · Leo Sandoval via Grub-devel

Containers bring the ability to have ready-to-use environments and in this case a complete Fedora container file is described containing all required packages for building and testing grub2.

Once users manually build it, they can run the container jump into 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 file explicitly indicating the required packages.

---
 container/Containerfile | 54 +++++++++++++++++++++++++++++++++++++++++
 container/README        | 14 +++++++++++
 2 files changed, 68 insertions(+)
 create mode 100644 container/Containerfile
 create mode 100644 container/README
container/Containerfile new file +52 -0
new file mode 100644
index 0000000000..dd066a2ce1
@@ -0,0 +1,54 @@
+FROM registry.fedoraproject.org/fedora
+
+# Install required packages
+RUN dnf update -y && \
+    dnf install -y \
+        attr \
+        autoconf \
+        automake \
+        autopoint \
+        bison \
+        btrfs-progs \
+        cpio \
+        cryptsetup \
+        dosfstools \
+        e2fsprogs \
+        edk2-ovmf \
+        edk2-ovmf-ia32 \
+        erofs-utils \
+        exfatprogs \
+        f2fs-tools \
+        flex \
+        gawk \
+        gettext \
+        genromfs \
+        git \
+        hfsplus-tools \
+        jfsutils \
+        libtool \
+        lzop \
+        make \
+        mtools \
+        nilfs-utils \
+        ntfsprogs \
+        parted \
+        patch \
+        pkg-config \
+        python3 \
+        qemu-system-x86 \
+        squashfs-tools \
+        swtpm-tools \
+        tpm2-tools \
+        udftools \
+        unifont \
+        unifont-fonts \
+        which \
+        words \
+        xfsprogs \
+        xorriso \
+        zfs-fuse
+
+# clone tip of grub repository
+RUN git clone --depth 1

https://https.git.savannah.gnu.org/git/grub.git /grub

container/Containerfile new file +2 -0
+
+WORKDIR /grub
\ No newline at end of file
container/README new file +14 -1
new file mode 100644
index 0000000000..788992abb9
@@ -0,0 +1,14 @@
+install `podman` on your favorite distro then build it with
+
+$ podman build --tag grub .
+
+once built, you can run/launch it
+
+$ podman run -it grub
+
+and execute the standard build/test commands inside it
+
+# ./bootstrap
+# ./configure
+# ./make
+# ./make check
\ No newline at end of file
--

2.48.1

Quoted 6 lines
Quoted 5 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________

Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel