From 916a8aa5ed0709b638260ae116659586a4a49435 Mon Sep 17 00:00:00 2001 From: Vincent Li Date: Wed, 5 Nov 2025 18:13:17 +0000 Subject: [PATCH] flash-images: mount debugfs mount debugfs to allow kernel functions tracing Signed-off-by: Vincent Li --- lfs/flash-images | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lfs/flash-images b/lfs/flash-images index b6101b476..6aace477c 100644 --- a/lfs/flash-images +++ b/lfs/flash-images @@ -40,6 +40,7 @@ IMAGE_FILE = /install/images/$(SNAME)-$(VERSION)-core$(CORE)-$(BUILD_ARCH).img.x FSTAB_FMT = UUID=%s %-8s %-4s %-10s %d %d\n BPFFS_FMT = %s %-8s %-4s %-10s %d %d\n +DEBUGFS_FMT = %s %-8s %-4s %-10s %d %d\n ############################################################################### # Top-level Rules @@ -169,6 +170,8 @@ endif printf "$(BPFFS_FMT)" "bpffs" "/sys/fs/bpf" \ "bpf" "defaults" 0 0 >> $(MNThdd)/etc/fstab + printf "$(DEBUGFS_FMT)" "debugfs" "/sys/kernel/debug" \ + "debugfs" "defaults" 0 0 >> $(MNThdd)/etc/fstab ifeq "$(BOOTLOADER)" "grub" # backup defaults file