summaryrefslogtreecommitdiff
path: root/scripts/package-build/linux-kernel/build-kernel.sh
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-10-31 10:04:11 +0000
committerChristian Breunig <christian@breunig.cc>2026-11-01 06:53:43 +0000
commit4cfde2bafb79e54ffdb3cb1e5f93c5cd37aa8ad7 (patch)
treeea32de7a3bcbe5cdced187d12365a37412a370b8 /scripts/package-build/linux-kernel/build-kernel.sh
parent140b1c1a89431f28ee2401255e006d1f4f516af2 (diff)
downloadvyos-build-4cfde2bafb79e54ffdb3cb1e5f93c5cd37aa8ad7.tar.gz
vyos-build-4cfde2bafb79e54ffdb3cb1e5f93c5cd37aa8ad7.zip
hooks: T9553: drop file capabilities while running live-build chroot hooks
vyos-1x grants cap_sys_module to kmod and cap_sys_time to date. In a build container whose capability bounding set lacks these (e.g. a default Proxmox LXC), the kernel refuses to execute both binaries, even as root. mkinitramfs ignores the failing modprobe calls and silently produces an initrd without any kernel modules - the ISO builds fine but cannot find its boot medium. The capabilities are now removed while the chroot hooks run and restored afterwards. The initramfs is regenerated before restoring them and live-build is told to skip its own final regeneration, which would otherwise run with the capabilities back in place. The build now fails if the initrd lacks the squashfs module.
Diffstat (limited to 'scripts/package-build/linux-kernel/build-kernel.sh')
0 files changed, 0 insertions, 0 deletions