Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 01/11] package/mender-grubenv: add busybox fancy sync fixup
@ 2026-08-07 12:55 Adam Duskett
  2026-08-07 12:55 ` [Buildroot] [PATCH 02/11] package/mender-update-modules: fix license hash Adam Duskett
                   ` (10 more replies)
  0 siblings, 11 replies; 14+ messages in thread
From: Adam Duskett @ 2026-08-07 12:55 UTC (permalink / raw)
  To: buildroot; +Cc: Adam Duskett

This prevents multiple `sync: ignoring all arguments` warnings
when the `grub-mender-grubenv-set` script is called when a
system that uses busybox sync installs a mender update.

Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
---
 package/mender-grubenv/mender-grubenv.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/mender-grubenv/mender-grubenv.mk b/package/mender-grubenv/mender-grubenv.mk
index d93159802d..de089f2ef8 100644
--- a/package/mender-grubenv/mender-grubenv.mk
+++ b/package/mender-grubenv/mender-grubenv.mk
@@ -87,4 +87,8 @@ define MENDER_GRUBENV_INSTALL_TARGET_CMDS
 	echo 'ENV_DIR=/boot/grub-mender-grubenv' > $(TARGET_DIR)/etc/mender_grubenv.config
 endef
 
+define MENDER_GRUBENV_BUSYBOX_CONFIG_FIXUPS
+	$(call KCONFIG_ENABLE_OPT,CONFIG_FEATURE_SYNC_FANCY)
+endef
+
 $(eval $(generic-package))
-- 
2.55.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 02/11] package/mender-update-modules: fix license hash
  2026-08-07 12:55 [Buildroot] [PATCH 01/11] package/mender-grubenv: add busybox fancy sync fixup Adam Duskett
@ 2026-08-07 12:55 ` Adam Duskett
  2026-08-09 20:45   ` Thomas Petazzoni via buildroot
  2026-08-07 12:55 ` [Buildroot] [PATCH 03/11] package/mender-update-modules: bump to version 3745bbea3 Adam Duskett
                   ` (9 subsequent siblings)
  10 siblings, 1 reply; 14+ messages in thread
From: Adam Duskett @ 2026-08-07 12:55 UTC (permalink / raw)
  To: buildroot; +Cc: Adam Duskett

Fixes:
https://autobuild.buildroot.net/results/5afb0ab3362cb67014f470dd976449b756224566/

Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
---
 package/mender-update-modules/mender-update-modules.hash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/mender-update-modules/mender-update-modules.hash b/package/mender-update-modules/mender-update-modules.hash
index ec879f46a1..f6de69c42c 100644
--- a/package/mender-update-modules/mender-update-modules.hash
+++ b/package/mender-update-modules/mender-update-modules.hash
@@ -1,3 +1,3 @@
 # Locally calculated
 sha256  4846f39abc254ad2ae2a9f3d5479b064bc1bae5034b9d276ebdb09d8c60f4541  mender-update-modules-d8c4683e6660af6c65069e10ee4b8ee50ec1af46.tar.gz
-sha256  d0f406b04e7901e6b4076bdf5fd20f9d7f04fc41681069fd8954413ac6295688  LICENSE
+sha256  c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4  LICENSE
-- 
2.55.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 03/11] package/mender-update-modules: bump to version 3745bbea3
  2026-08-07 12:55 [Buildroot] [PATCH 01/11] package/mender-grubenv: add busybox fancy sync fixup Adam Duskett
  2026-08-07 12:55 ` [Buildroot] [PATCH 02/11] package/mender-update-modules: fix license hash Adam Duskett
@ 2026-08-07 12:55 ` Adam Duskett
  2026-08-07 12:55 ` [Buildroot] [PATCH 04/11] package/mender-update-modules: add banner module Adam Duskett
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 14+ messages in thread
From: Adam Duskett @ 2026-08-07 12:55 UTC (permalink / raw)
  To: buildroot; +Cc: Adam Duskett

Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
---
 package/mender-update-modules/mender-update-modules.hash | 2 +-
 package/mender-update-modules/mender-update-modules.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/mender-update-modules/mender-update-modules.hash b/package/mender-update-modules/mender-update-modules.hash
index f6de69c42c..08dd47cf98 100644
--- a/package/mender-update-modules/mender-update-modules.hash
+++ b/package/mender-update-modules/mender-update-modules.hash
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256  4846f39abc254ad2ae2a9f3d5479b064bc1bae5034b9d276ebdb09d8c60f4541  mender-update-modules-d8c4683e6660af6c65069e10ee4b8ee50ec1af46.tar.gz
+sha256  52b3b19bd3ad437caa7d1bce7f4766055a204909889f3436c8459da28dcef771  mender-update-modules-3745bbea3fc8ce73cf6489a58fb77dfb66660ebf.tar.gz
 sha256  c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4  LICENSE
diff --git a/package/mender-update-modules/mender-update-modules.mk b/package/mender-update-modules/mender-update-modules.mk
index 0024acc189..d18b5111ae 100644
--- a/package/mender-update-modules/mender-update-modules.mk
+++ b/package/mender-update-modules/mender-update-modules.mk
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-MENDER_UPDATE_MODULES_VERSION = d8c4683e6660af6c65069e10ee4b8ee50ec1af46
+MENDER_UPDATE_MODULES_VERSION = 3745bbea3fc8ce73cf6489a58fb77dfb66660ebf
 MENDER_UPDATE_MODULES_SITE = $(call github,mendersoftware,mender-update-modules,$(MENDER_UPDATE_MODULES_VERSION))
 MENDER_UPDATE_MODULES_LICENSE = Apache-2.0
 MENDER_UPDATE_MODULES_LICENSE_FILES = LICENSE
-- 
2.55.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 04/11] package/mender-update-modules: add banner module
  2026-08-07 12:55 [Buildroot] [PATCH 01/11] package/mender-grubenv: add busybox fancy sync fixup Adam Duskett
  2026-08-07 12:55 ` [Buildroot] [PATCH 02/11] package/mender-update-modules: fix license hash Adam Duskett
  2026-08-07 12:55 ` [Buildroot] [PATCH 03/11] package/mender-update-modules: bump to version 3745bbea3 Adam Duskett
@ 2026-08-07 12:55 ` Adam Duskett
  2026-08-07 12:55 ` [Buildroot] [PATCH 05/11] package/mender-update-modules: add persistent-app module Adam Duskett
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 14+ messages in thread
From: Adam Duskett @ 2026-08-07 12:55 UTC (permalink / raw)
  To: buildroot; +Cc: Adam Duskett

Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
---
 package/mender-update-modules/Config.in              | 12 ++++++++++++
 .../mender-update-modules/mender-update-modules.mk   |  4 ++++
 2 files changed, 16 insertions(+)

diff --git a/package/mender-update-modules/Config.in b/package/mender-update-modules/Config.in
index 88e0805976..6ba6f82615 100644
--- a/package/mender-update-modules/Config.in
+++ b/package/mender-update-modules/Config.in
@@ -16,6 +16,18 @@ config BR2_PACKAGE_MENDER_UPDATE_MODULES
 
 if BR2_PACKAGE_MENDER_UPDATE_MODULES
 
+config BR2_PACKAGE_MENDER_UPDATE_MODULES_BANNER
+	bool "banner"
+	help
+	  The Banner Update Module manages the system's message of
+	  the day (MOTD) displayed when users log in via SSH or
+	  console. It uses metadata-driven updates to change the
+	  banner text without requiring any file payload, supports
+	  rollback functionality, and operates without requiring
+	  system reboots.
+
+	  https://github.com/aduskett/mender-update-modules/tree/master/banner
+
 config BR2_PACKAGE_MENDER_UPDATE_MODULES_DFU
 	bool "DFU"
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb
diff --git a/package/mender-update-modules/mender-update-modules.mk b/package/mender-update-modules/mender-update-modules.mk
index d18b5111ae..1db47cbd15 100644
--- a/package/mender-update-modules/mender-update-modules.mk
+++ b/package/mender-update-modules/mender-update-modules.mk
@@ -12,6 +12,10 @@ MENDER_UPDATE_MODULES_DEPENDENCIES = host-mender-artifact mender
 
 MENDER_UPDATE_MODULES_MODULES = script
 
+ifeq ($(BR2_PACKAGE_MENDER_UPDATE_MODULES_BANNER),y)
+MENDER_UPDATE_MODULES_MODULES += banner
+endif
+
 ifeq ($(BR2_PACKAGE_MENDER_UPDATE_MODULES_DFU),y)
 MENDER_UPDATE_MODULES_MODULES += dfu
 endif
-- 
2.55.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 05/11] package/mender-update-modules: add persistent-app module
  2026-08-07 12:55 [Buildroot] [PATCH 01/11] package/mender-grubenv: add busybox fancy sync fixup Adam Duskett
                   ` (2 preceding siblings ...)
  2026-08-07 12:55 ` [Buildroot] [PATCH 04/11] package/mender-update-modules: add banner module Adam Duskett
@ 2026-08-07 12:55 ` Adam Duskett
  2026-08-07 12:55 ` [Buildroot] [PATCH 06/11] configs/mender_x86_64_efi_defconfig: bump kernel version to 6.18.43 Adam Duskett
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 14+ messages in thread
From: Adam Duskett @ 2026-08-07 12:55 UTC (permalink / raw)
  To: buildroot; +Cc: Adam Duskett

Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
---
 package/mender-update-modules/Config.in        | 18 ++++++++++++++++++
 .../mender-update-modules.mk                   |  4 ++++
 2 files changed, 22 insertions(+)

diff --git a/package/mender-update-modules/Config.in b/package/mender-update-modules/Config.in
index 6ba6f82615..b94a8c76e7 100644
--- a/package/mender-update-modules/Config.in
+++ b/package/mender-update-modules/Config.in
@@ -137,6 +137,24 @@ comment "ipk support needs a toolchain w/ wchar"
 	depends on BR2_USE_MMU
 	depends on !BR2_USE_WCHAR
 
+config BR2_PACKAGE_MENDER_UPDATE_MODULES_PERSISTENT_APP
+	bool "persistent-app"
+	help
+	  The Persistent App Update Module installs files to a
+	  user-defined directory on the persistent data partition,
+	  ensuring deployments survive rootfs A/B updates.
+
+	  This module uses the data-partition software filesystem
+	  namespace, which means version tracking in mender
+	  show-provides persists across system updates. When a
+	  rootfs update clears rootfs-image.* provides, the
+	  data-partition.* provides remain intact.
+
+	  The module supports rollback by maintaining backups on
+	  the same persistent partition.
+
+	  https://github.com/mendersoftware/mender-update-modules/tree/master/persistent-app
+
 config BR2_PACKAGE_MENDER_UPDATE_MODULES_PODMAN
 	bool "podman"
 	depends on BR2_USE_MMU  # podman
diff --git a/package/mender-update-modules/mender-update-modules.mk b/package/mender-update-modules/mender-update-modules.mk
index 1db47cbd15..e33e934590 100644
--- a/package/mender-update-modules/mender-update-modules.mk
+++ b/package/mender-update-modules/mender-update-modules.mk
@@ -36,6 +36,10 @@ ifeq ($(BR2_PACKAGE_MENDER_UPDATE_MODULES_IPK),y)
 MENDER_UPDATE_MODULES_MODULES += ipk
 endif
 
+ifeq ($(BR2_PACKAGE_MENDER_UPDATE_MODULES_PERSISTENT_APP),y)
+MENDER_UPDATE_MODULES_MODULES += persistent-app
+endif
+
 ifeq ($(BR2_PACKAGE_MENDER_UPDATE_MODULES_PODMAN),y)
 MENDER_UPDATE_MODULES_MODULES += podman
 endif
-- 
2.55.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 06/11] configs/mender_x86_64_efi_defconfig: bump kernel version to 6.18.43
  2026-08-07 12:55 [Buildroot] [PATCH 01/11] package/mender-grubenv: add busybox fancy sync fixup Adam Duskett
                   ` (3 preceding siblings ...)
  2026-08-07 12:55 ` [Buildroot] [PATCH 05/11] package/mender-update-modules: add persistent-app module Adam Duskett
@ 2026-08-07 12:55 ` Adam Duskett
  2026-08-07 12:55 ` [Buildroot] [PATCH 07/11] board/mender: change device type to compatible-types Adam Duskett
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 14+ messages in thread
From: Adam Duskett @ 2026-08-07 12:55 UTC (permalink / raw)
  To: buildroot; +Cc: Adam Duskett

Also update board/mender/x86_64/linux.config by running
`make linux-savedefconfig` and comparing the differences.

Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
---
 board/mender/x86_64/linux.config    | 5 +++--
 configs/mender_x86_64_efi_defconfig | 4 ++--
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/board/mender/x86_64/linux.config b/board/mender/x86_64/linux.config
index f17fc18edb..b758c6d45a 100644
--- a/board/mender/x86_64/linux.config
+++ b/board/mender/x86_64/linux.config
@@ -3,6 +3,7 @@ CONFIG_SMP=y
 CONFIG_HYPERVISOR_GUEST=y
 CONFIG_PARAVIRT=y
 CONFIG_EFI=y
+# CONFIG_GCC_PLUGINS is not set
 CONFIG_MODULES=y
 CONFIG_MODULE_UNLOAD=y
 CONFIG_NET=y
@@ -10,6 +11,8 @@ CONFIG_PACKET=y
 CONFIG_UNIX=y
 CONFIG_INET=y
 CONFIG_NETFILTER=y
+CONFIG_NETFILTER_XTABLES_LEGACY=y
+CONFIG_IP_NF_IPTABLES_LEGACY=y
 CONFIG_IP_NF_IPTABLES=y
 CONFIG_IP_NF_FILTER=y
 CONFIG_CFG80211=m
@@ -35,7 +38,6 @@ CONFIG_RT2800USB_RT3573=y
 CONFIG_RT2800USB_RT53XX=y
 CONFIG_RT2800USB_RT55XX=y
 # CONFIG_RTL_CARDS is not set
-CONFIG_RTL8XXXU=m
 CONFIG_INPUT_EVDEV=y
 CONFIG_SERIAL_8250=y
 CONFIG_SERIAL_8250_CONSOLE=y
@@ -43,7 +45,6 @@ CONFIG_VIRTIO_CONSOLE=y
 CONFIG_HW_RANDOM_VIRTIO=m
 CONFIG_DRM=y
 CONFIG_DRM_VIRTIO_GPU=y
-CONFIG_FB_VESA=y
 CONFIG_SOUND=y
 CONFIG_SND=y
 CONFIG_USB=y
diff --git a/configs/mender_x86_64_efi_defconfig b/configs/mender_x86_64_efi_defconfig
index 219f02839c..f0a2088b8c 100644
--- a/configs/mender_x86_64_efi_defconfig
+++ b/configs/mender_x86_64_efi_defconfig
@@ -1,5 +1,5 @@
 BR2_x86_64=y
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_12=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_18=y
 BR2_INIT_SYSV=y
 BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
 BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
@@ -9,7 +9,7 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT="board/mender/x86_64/post-image-efi.sh"
 BR2_ROOTFS_POST_SCRIPT_ARGS="--data-part-size=32M --device-type=buildroot-x86_64 --artifact-name=1.0"
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.12.28"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.18.43"
 BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
 BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/mender/x86_64/linux.config"
 BR2_LINUX_KERNEL_INSTALL_TARGET=y
-- 
2.55.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 07/11] board/mender: change device type to compatible-types
  2026-08-07 12:55 [Buildroot] [PATCH 01/11] package/mender-grubenv: add busybox fancy sync fixup Adam Duskett
                   ` (4 preceding siblings ...)
  2026-08-07 12:55 ` [Buildroot] [PATCH 06/11] configs/mender_x86_64_efi_defconfig: bump kernel version to 6.18.43 Adam Duskett
@ 2026-08-07 12:55 ` Adam Duskett
  2026-08-07 12:55 ` [Buildroot] [PATCH 08/11] board/mender/x86_64/post-image-efi.sh: do not prepend artifact name to mender image Adam Duskett
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 14+ messages in thread
From: Adam Duskett @ 2026-08-07 12:55 UTC (permalink / raw)
  To: buildroot; +Cc: Adam Duskett

Newer versions of mender-artifact echo deprecation warnings when using
the --device-type argument and tell users to use --compatible-types.

Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
---
 board/mender/x86_64/post-build.sh              | 12 ++++++------
 board/mender/x86_64/post-image-efi.sh          | 18 +++++++++---------
 configs/mender_x86_64_efi_defconfig            |  2 +-
 .../tests/package/test_mender/post-build.sh    |  6 +++---
 4 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/board/mender/x86_64/post-build.sh b/board/mender/x86_64/post-build.sh
index 9e909e9281..3989b58b42 100755
--- a/board/mender/x86_64/post-build.sh
+++ b/board/mender/x86_64/post-build.sh
@@ -1,11 +1,11 @@
 #!/usr/bin/env bash
 set -e
-DEVICE_TYPE="buildroot-x86_64"
+COMPATIBLE_TYPES="buildroot-x86_64"
 
 parse_args() {
     local o O opts
-    o='a:o:d:'
-    O='artifact-name:,data-part-size:,device-type:'
+    o='a:o:c:'
+    O='artifact-name:,data-part-size:,compatible-types:'
     opts="$(getopt -o "${o}" -l "${O}" -- "${@}")"
     eval set -- "${opts}"
     while [ ${#} -gt 0 ]; do
@@ -14,8 +14,8 @@ parse_args() {
             # Ignored to have same options as other scripts
             shift 2
             ;;
-        (-d|--device-type)
-            DEVICE_TYPE="${2}"; shift 2
+        (-c|--compatible-types)
+            COMPATIBLE_TYPES="${2}"; shift 2
             ;;
         (-a|--artifact-name)
             # Ignored to have same options as other scripts
@@ -42,7 +42,7 @@ mender_fixup() {
 main() {
     parse_args "${@}"
     mender_fixup
-    echo "device_type=${DEVICE_TYPE}" > "${TARGET_DIR}/etc/mender/device_type"
+    echo "device_type=${COMPATIBLE_TYPES}" > "${TARGET_DIR}/etc/mender/device_type"
 }
 
 main "${@}"
diff --git a/board/mender/x86_64/post-image-efi.sh b/board/mender/x86_64/post-image-efi.sh
index a3e262f8fe..a1dccb25b3 100755
--- a/board/mender/x86_64/post-image-efi.sh
+++ b/board/mender/x86_64/post-image-efi.sh
@@ -3,14 +3,14 @@ set -e
 BOARD_DIR="$(realpath "$(dirname "$0")")"
 DATA_PART="${BINARIES_DIR}"/data-part
 DATA_PART_SIZE="32M"
-DEVICE_TYPE="buildroot-x86_64"
+COMPATIBLE_TYPES="buildroot-x86_64"
 ARTIFACT_NAME="1.0"
 
 # Parse arguments.
 parse_args() {
     local o O opts
-    o='a:o:d:'
-    O='artifact-name:,data-part-size:,device-type:'
+    o='a:o:c:'
+    O='artifact-name:,data-part-size:,compatible-types:'
     opts="$(getopt -o "${o}" -l "${O}" -- "${@}")"
     eval set -- "${opts}"
     while [ ${#} -gt 0 ]; do
@@ -18,8 +18,8 @@ parse_args() {
         (-o|--data-part-size)
             DATA_PART_SIZE="${2}"; shift 2
             ;;
-        (-d|--device-type)
-            DEVICE_TYPE="${2}"; shift 2
+        (-c|--compatible-types)
+            COMPATIBLE_TYPES="${2}"; shift 2
             ;;
         (-a|--artifact-name)
             ARTIFACT_NAME="${2}"; shift 2
@@ -55,7 +55,7 @@ generate_mender_bootstrap_artifact() {
     write bootstrap-artifact \
     --compression none \
     --artifact-name "${ARTIFACT_NAME}" \
-    --device-type "${DEVICE_TYPE}" \
+    --compatible-types "${COMPATIBLE_TYPES}" \
     --provides "rootfs-image.version:${ARTIFACT_NAME}" \
     --provides "rootfs-image.checksum:${img_checksum}" \
     --clears-provides "rootfs-image.*" \
@@ -65,14 +65,14 @@ generate_mender_bootstrap_artifact() {
 
 # Create a mender image.
 generate_mender_image() {
-    echo "Creating ${BINARIES_DIR}/${DEVICE_TYPE}-${ARTIFACT_NAME}.mender"
+    echo "Creating ${BINARIES_DIR}/${COMPATIBLE_TYPES}-${ARTIFACT_NAME}.mender"
     "${HOST_DIR}/bin/mender-artifact" \
         write rootfs-image \
         --compression none \
-        -t "${DEVICE_TYPE}" \
+        -c "${COMPATIBLE_TYPES}" \
         -n "${BR2_VERSION}" \
         -f "${BINARIES_DIR}/rootfs.ext2" \
-        -o "${BINARIES_DIR}/${DEVICE_TYPE}-${ARTIFACT_NAME}.mender"
+        -o "${BINARIES_DIR}/${COMPATIBLE_TYPES}-${ARTIFACT_NAME}.mender"
 }
 
 generate_image() {
diff --git a/configs/mender_x86_64_efi_defconfig b/configs/mender_x86_64_efi_defconfig
index f0a2088b8c..2f2e3e4f4a 100644
--- a/configs/mender_x86_64_efi_defconfig
+++ b/configs/mender_x86_64_efi_defconfig
@@ -6,7 +6,7 @@ BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
 BR2_ROOTFS_OVERLAY="board/mender/x86_64/overlay"
 BR2_ROOTFS_POST_BUILD_SCRIPT="board/mender/x86_64/post-build.sh"
 BR2_ROOTFS_POST_IMAGE_SCRIPT="board/mender/x86_64/post-image-efi.sh"
-BR2_ROOTFS_POST_SCRIPT_ARGS="--data-part-size=32M --device-type=buildroot-x86_64 --artifact-name=1.0"
+BR2_ROOTFS_POST_SCRIPT_ARGS="--data-part-size=32M --compatible-types=buildroot-x86_64 --artifact-name=1.0"
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.18.43"
diff --git a/support/testing/tests/package/test_mender/post-build.sh b/support/testing/tests/package/test_mender/post-build.sh
index 1afa231082..76698fb7d9 100755
--- a/support/testing/tests/package/test_mender/post-build.sh
+++ b/support/testing/tests/package/test_mender/post-build.sh
@@ -1,13 +1,13 @@
 #!/usr/bin/env bash
 set -e
-DEVICE_TYPE="buildroot-arm"
+COMPATIBLE_TYPE="buildroot-arm"
 ARTIFACT_NAME="RUNTIME_TEST_ARTIFACT_NAME"
 
 generate_mender_bootstrap_artifact() {
   "${HOST_DIR}"/bin/mender-artifact \
     write bootstrap-artifact \
     --artifact-name "${ARTIFACT_NAME}" \
-    --device-type "${DEVICE_TYPE}" \
+    --compatible-types "${COMPATIBLE_TYPE}" \
     --provides "rootfs-image.version:${ARTIFACT_NAME}" \
     --clears-provides "rootfs-image.*" \
     --output-path "${TARGET_DIR}"/var/lib/mender/bootstrap.mender \
@@ -17,7 +17,7 @@ generate_mender_bootstrap_artifact() {
 function mender_fixup() {
   rm -rf "${TARGET_DIR}"/var/lib/mender
   mkdir -p "${TARGET_DIR}"/var/lib/mender
-  echo "device_type=${DEVICE_TYPE}" > "${TARGET_DIR}"/var/lib/mender/device_type
+  echo "device_type=${COMPATIBLE_TYPE}" > "${TARGET_DIR}"/var/lib/mender/device_type
 
 }
 
-- 
2.55.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 08/11] board/mender/x86_64/post-image-efi.sh: do not prepend artifact name to mender image
  2026-08-07 12:55 [Buildroot] [PATCH 01/11] package/mender-grubenv: add busybox fancy sync fixup Adam Duskett
                   ` (5 preceding siblings ...)
  2026-08-07 12:55 ` [Buildroot] [PATCH 07/11] board/mender: change device type to compatible-types Adam Duskett
@ 2026-08-07 12:55 ` Adam Duskett
  2026-08-07 12:55 ` [Buildroot] [PATCH 09/11] board/mender/x86_64: add a udev rule to create /dev/root Adam Duskett
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 14+ messages in thread
From: Adam Duskett @ 2026-08-07 12:55 UTC (permalink / raw)
  To: buildroot; +Cc: Adam Duskett

Do not prepend ${COMPATIBLE_TYPES} to the user-specified artifact
name. Especially since compatible types can be added multiple times
to mender-artifact.

Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
---
 board/mender/x86_64/post-image-efi.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/board/mender/x86_64/post-image-efi.sh b/board/mender/x86_64/post-image-efi.sh
index a1dccb25b3..5f0b5a83ec 100755
--- a/board/mender/x86_64/post-image-efi.sh
+++ b/board/mender/x86_64/post-image-efi.sh
@@ -65,14 +65,14 @@ generate_mender_bootstrap_artifact() {
 
 # Create a mender image.
 generate_mender_image() {
-    echo "Creating ${BINARIES_DIR}/${COMPATIBLE_TYPES}-${ARTIFACT_NAME}.mender"
+    echo "Creating ${BINARIES_DIR}/${ARTIFACT_NAME}.mender"
     "${HOST_DIR}/bin/mender-artifact" \
         write rootfs-image \
         --compression none \
         -c "${COMPATIBLE_TYPES}" \
         -n "${BR2_VERSION}" \
         -f "${BINARIES_DIR}/rootfs.ext2" \
-        -o "${BINARIES_DIR}/${COMPATIBLE_TYPES}-${ARTIFACT_NAME}.mender"
+        -o "${BINARIES_DIR}/${ARTIFACT_NAME}.mender"
 }
 
 generate_image() {
-- 
2.55.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 09/11] board/mender/x86_64: add a udev rule to create /dev/root
  2026-08-07 12:55 [Buildroot] [PATCH 01/11] package/mender-grubenv: add busybox fancy sync fixup Adam Duskett
                   ` (6 preceding siblings ...)
  2026-08-07 12:55 ` [Buildroot] [PATCH 08/11] board/mender/x86_64/post-image-efi.sh: do not prepend artifact name to mender image Adam Duskett
@ 2026-08-07 12:55 ` Adam Duskett
  2026-08-07 12:55 ` [Buildroot] [PATCH 10/11] test_mender/post-build.sh: add rootfs image checksum for bootstrap artifact Adam Duskett
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 14+ messages in thread
From: Adam Duskett @ 2026-08-07 12:55 UTC (permalink / raw)
  To: buildroot; +Cc: Adam Duskett

As /dev/root does not appear automatically, add a rule to
create /dev/root. Without this rule, even running a simple command
outputs the following warning:

```
WARN[0000] Could not resolve path link: /dev/root Attempting to continue
WARN[0000] Could not resolve path link: /dev/root Attempting to continue
```

Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
---
 .../mender/x86_64/overlay/etc/udev/rules.d/99-root-symlink.rules | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 board/mender/x86_64/overlay/etc/udev/rules.d/99-root-symlink.rules

diff --git a/board/mender/x86_64/overlay/etc/udev/rules.d/99-root-symlink.rules b/board/mender/x86_64/overlay/etc/udev/rules.d/99-root-symlink.rules
new file mode 100644
index 0000000000..7d2ae8cb89
--- /dev/null
+++ b/board/mender/x86_64/overlay/etc/udev/rules.d/99-root-symlink.rules
@@ -0,0 +1 @@
+SUBSYSTEM=="block", ACTION=="add|change", PROGRAM="/bin/grep -q root=/dev/%k /proc/cmdline", SYMLINK+="root"
-- 
2.55.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 10/11] test_mender/post-build.sh: add rootfs image checksum for bootstrap artifact
  2026-08-07 12:55 [Buildroot] [PATCH 01/11] package/mender-grubenv: add busybox fancy sync fixup Adam Duskett
                   ` (7 preceding siblings ...)
  2026-08-07 12:55 ` [Buildroot] [PATCH 09/11] board/mender/x86_64: add a udev rule to create /dev/root Adam Duskett
@ 2026-08-07 12:55 ` Adam Duskett
  2026-08-07 12:55 ` [Buildroot] [PATCH 11/11] test_mender/post-build.sh: use /etc/mender/device_type Adam Duskett
  2026-08-09 20:46 ` [Buildroot] [PATCH 01/11] package/mender-grubenv: add busybox fancy sync fixup Thomas Petazzoni via buildroot
  10 siblings, 0 replies; 14+ messages in thread
From: Adam Duskett @ 2026-08-07 12:55 UTC (permalink / raw)
  To: buildroot; +Cc: Adam Duskett

Just like the generate_mender_bootstrap_artifact method in
board/mender/x86_64/post-image-efi.sh, calculate the rootfs-image checksum.

Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
---
 support/testing/tests/package/test_mender/post-build.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/support/testing/tests/package/test_mender/post-build.sh b/support/testing/tests/package/test_mender/post-build.sh
index 76698fb7d9..db075628e0 100755
--- a/support/testing/tests/package/test_mender/post-build.sh
+++ b/support/testing/tests/package/test_mender/post-build.sh
@@ -4,11 +4,15 @@ COMPATIBLE_TYPE="buildroot-arm"
 ARTIFACT_NAME="RUNTIME_TEST_ARTIFACT_NAME"
 
 generate_mender_bootstrap_artifact() {
+  img_checksum=$(sha256sum "${BINARIES_DIR}"/rootfs.cpio |awk '{print $1}')
+
   "${HOST_DIR}"/bin/mender-artifact \
     write bootstrap-artifact \
+    --compression none \
     --artifact-name "${ARTIFACT_NAME}" \
     --compatible-types "${COMPATIBLE_TYPE}" \
     --provides "rootfs-image.version:${ARTIFACT_NAME}" \
+    --provides "rootfs-image.checksum:${img_checksum}" \
     --clears-provides "rootfs-image.*" \
     --output-path "${TARGET_DIR}"/var/lib/mender/bootstrap.mender \
     --version 3
-- 
2.55.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 11/11] test_mender/post-build.sh: use /etc/mender/device_type
  2026-08-07 12:55 [Buildroot] [PATCH 01/11] package/mender-grubenv: add busybox fancy sync fixup Adam Duskett
                   ` (8 preceding siblings ...)
  2026-08-07 12:55 ` [Buildroot] [PATCH 10/11] test_mender/post-build.sh: add rootfs image checksum for bootstrap artifact Adam Duskett
@ 2026-08-07 12:55 ` Adam Duskett
  2026-08-09 20:46 ` [Buildroot] [PATCH 01/11] package/mender-grubenv: add busybox fancy sync fixup Thomas Petazzoni via buildroot
  10 siblings, 0 replies; 14+ messages in thread
From: Adam Duskett @ 2026-08-07 12:55 UTC (permalink / raw)
  To: buildroot; +Cc: Adam Duskett

To keep parody with board/mender/x86_64/overlay/etc/mender/mender.conf,
change /var/lib/mender/device_type to /etc/mender/device_type and
add a /etc/mender/mender.conf file.

Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
---
 .../testing/tests/package/test_mender/post-build.sh   |  3 +--
 .../test_mender/rootfs-overlay/etc/mender/mender.conf | 11 +++++++++++
 2 files changed, 12 insertions(+), 2 deletions(-)
 create mode 100644 support/testing/tests/package/test_mender/rootfs-overlay/etc/mender/mender.conf

diff --git a/support/testing/tests/package/test_mender/post-build.sh b/support/testing/tests/package/test_mender/post-build.sh
index db075628e0..f27b0f9417 100755
--- a/support/testing/tests/package/test_mender/post-build.sh
+++ b/support/testing/tests/package/test_mender/post-build.sh
@@ -21,8 +21,7 @@ generate_mender_bootstrap_artifact() {
 function mender_fixup() {
   rm -rf "${TARGET_DIR}"/var/lib/mender
   mkdir -p "${TARGET_DIR}"/var/lib/mender
-  echo "device_type=${COMPATIBLE_TYPE}" > "${TARGET_DIR}"/var/lib/mender/device_type
-
+  echo "device_type=${COMPATIBLE_TYPE}" > "${TARGET_DIR}"/etc/mender/device_type
 }
 
 mender_fixup
diff --git a/support/testing/tests/package/test_mender/rootfs-overlay/etc/mender/mender.conf b/support/testing/tests/package/test_mender/rootfs-overlay/etc/mender/mender.conf
new file mode 100644
index 0000000000..5f423fb2cb
--- /dev/null
+++ b/support/testing/tests/package/test_mender/rootfs-overlay/etc/mender/mender.conf
@@ -0,0 +1,11 @@
+{
+  "InventoryPollIntervalSeconds": 1800,
+  "UpdatePollIntervalSeconds": 1800,
+  "RetryPollIntervalSeconds": 300,
+  "RootfsPartA": "/dev/vda2",
+  "RootfsPartB": "/dev/vda3",
+  "ServerCertificate": "/etc/mender/server.crt",
+  "ServerURL": "https://docker.mender.io",
+  "TenantToken": "dummy",
+  "DeviceTypeFile": "/etc/mender/device_type"
+}
-- 
2.55.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 14+ messages in thread

* Re: [Buildroot] [PATCH 02/11] package/mender-update-modules: fix license hash
  2026-08-07 12:55 ` [Buildroot] [PATCH 02/11] package/mender-update-modules: fix license hash Adam Duskett
@ 2026-08-09 20:45   ` Thomas Petazzoni via buildroot
  2026-08-10  8:02     ` Adam Duskett
  0 siblings, 1 reply; 14+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-08-09 20:45 UTC (permalink / raw)
  To: Adam Duskett; +Cc: buildroot

Hello Adam,

On Fri, Aug 07, 2026 at 02:55:01PM +0200, Adam Duskett wrote:
> Fixes:
> https://autobuild.buildroot.net/results/5afb0ab3362cb67014f470dd976449b756224566/
> 
> Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>

Thanks for the patch. Which commit/version bump introduced this issue?

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Buildroot] [PATCH 01/11] package/mender-grubenv: add busybox fancy sync fixup
  2026-08-07 12:55 [Buildroot] [PATCH 01/11] package/mender-grubenv: add busybox fancy sync fixup Adam Duskett
                   ` (9 preceding siblings ...)
  2026-08-07 12:55 ` [Buildroot] [PATCH 11/11] test_mender/post-build.sh: use /etc/mender/device_type Adam Duskett
@ 2026-08-09 20:46 ` Thomas Petazzoni via buildroot
  10 siblings, 0 replies; 14+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-08-09 20:46 UTC (permalink / raw)
  To: Adam Duskett; +Cc: buildroot

On Fri, Aug 07, 2026 at 02:55:00PM +0200, Adam Duskett wrote:
> This prevents multiple `sync: ignoring all arguments` warnings
> when the `grub-mender-grubenv-set` script is called when a
> system that uses busybox sync installs a mender update.
> 
> Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>

Reviewed-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>

-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Buildroot] [PATCH 02/11] package/mender-update-modules: fix license hash
  2026-08-09 20:45   ` Thomas Petazzoni via buildroot
@ 2026-08-10  8:02     ` Adam Duskett
  0 siblings, 0 replies; 14+ messages in thread
From: Adam Duskett @ 2026-08-10  8:02 UTC (permalink / raw)
  To: Thomas Petazzoni; +Cc: buildroot


[-- Attachment #1.1: Type: text/plain, Size: 690 bytes --]

Hi Thomas;

Probably the initial commit? I'm not sure how it was missed and I can only
find one instance
of it failing on the autobuilders

On Sun, 9 Aug 2026 at 22:46, Thomas Petazzoni <thomas.petazzoni@bootlin.com>
wrote:

> Hello Adam,
>
> On Fri, Aug 07, 2026 at 02:55:01PM +0200, Adam Duskett wrote:
> > Fixes:
> >
> https://autobuild.buildroot.net/results/5afb0ab3362cb67014f470dd976449b756224566/
> >
> > Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
>
> Thanks for the patch. Which commit/version bump introduced this issue?
>
> Thomas
> --
> Thomas Petazzoni, co-owner and CEO, Bootlin
> Embedded Linux and Kernel engineering and training
> https://bootlin.com
>

[-- Attachment #1.2: Type: text/html, Size: 1380 bytes --]

[-- Attachment #2: Type: text/plain, Size: 150 bytes --]

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-08-10  8:02 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-07 12:55 [Buildroot] [PATCH 01/11] package/mender-grubenv: add busybox fancy sync fixup Adam Duskett
2026-08-07 12:55 ` [Buildroot] [PATCH 02/11] package/mender-update-modules: fix license hash Adam Duskett
2026-08-09 20:45   ` Thomas Petazzoni via buildroot
2026-08-10  8:02     ` Adam Duskett
2026-08-07 12:55 ` [Buildroot] [PATCH 03/11] package/mender-update-modules: bump to version 3745bbea3 Adam Duskett
2026-08-07 12:55 ` [Buildroot] [PATCH 04/11] package/mender-update-modules: add banner module Adam Duskett
2026-08-07 12:55 ` [Buildroot] [PATCH 05/11] package/mender-update-modules: add persistent-app module Adam Duskett
2026-08-07 12:55 ` [Buildroot] [PATCH 06/11] configs/mender_x86_64_efi_defconfig: bump kernel version to 6.18.43 Adam Duskett
2026-08-07 12:55 ` [Buildroot] [PATCH 07/11] board/mender: change device type to compatible-types Adam Duskett
2026-08-07 12:55 ` [Buildroot] [PATCH 08/11] board/mender/x86_64/post-image-efi.sh: do not prepend artifact name to mender image Adam Duskett
2026-08-07 12:55 ` [Buildroot] [PATCH 09/11] board/mender/x86_64: add a udev rule to create /dev/root Adam Duskett
2026-08-07 12:55 ` [Buildroot] [PATCH 10/11] test_mender/post-build.sh: add rootfs image checksum for bootstrap artifact Adam Duskett
2026-08-07 12:55 ` [Buildroot] [PATCH 11/11] test_mender/post-build.sh: use /etc/mender/device_type Adam Duskett
2026-08-09 20:46 ` [Buildroot] [PATCH 01/11] package/mender-grubenv: add busybox fancy sync fixup Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox