From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4jcDHd6ZMMz2xPf for ; Sat, 28 Nov 2026 15:10:37 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail01.haj.ipfire.org", Issuer "YR1" (not verified)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4jcDHd6Bslz2x9t for ; Sat, 28 Nov 2026 15:10:37 +0000 (UTC) Received: from people01.haj.ipfire.org (people01.haj.ipfire.org [172.28.1.161]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bit raw public key) server-digest SHA256 client-signature ECDSA (secp384r1) client-digest SHA384) (Client CN "people01.haj.ipfire.org", Issuer "YE1" (not verified)) by mail01.ipfire.org (Postfix) with ESMTPS id 4jcDHd35wQz1Cb for ; Sat, 28 Nov 2026 15:10:37 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1795878637; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc; bh=qOQYndgavuyZP09isP0tXs5ZUmEJbm+IDTr52j9+n5g=; b=BVymp3SwmK8Nq7KZ3K0uN4M1B4mvNfkVuGPv+pE6Lhxh23rqUIav/whGuQwTee/1MM7L79 TcwPxCzBCaUZZmCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1795878637; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc; bh=qOQYndgavuyZP09isP0tXs5ZUmEJbm+IDTr52j9+n5g=; b=vdzlt/NFjhjO+bSVLwScKPxFf5qvScbhR8jSUmN5uK0vF09uVvqr5ToC7gOvjwAO3GZPSe r1v0ehtGAuAzgWLoJ46XRpvqVvTJs6nD5B8dYh6gc3XwHOGQREoj3F8RLBIJlSwBKlHVMd MrRK5OTQnQ+LsFUwQD0ZbsgE8Tw4K5D2WD0cMGgZA6d63eaQPUsAAHo7kVl3InkZlLt8rq 7QArWYC2TTqreWMMB+7kZjAKSP6y00Me2MvdJi4U61BFKgWLcL8xHsh8MZYFIWKAb8G7fL KzTlq2FARQLSE+fdbmsAQK30+jujxQa3r2/NQgvWtHncZ2cuuJk6rSiZ3U7JhA== Received: by people01.haj.ipfire.org (Postfix, from userid 1000) id 4jcDHd0WR3z2xPG; Sat, 28 Nov 2026 15:10:37 +0000 (UTC) To: ipfire-scm@lists.ipfire.org Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. f5c5202809c4bb1ecdbc87740d438c80c4fd2c1d X-Git-Refname: refs/heads/next X-Git-Reftype: branch X-Git-Oldrev: 4fd907b33cb24d831be24dc0ec645f17a74a4907 X-Git-Newrev: f5c5202809c4bb1ecdbc87740d438c80c4fd2c1d Message-Id: <4jcDHd0WR3z2xPG@people01.haj.ipfire.org> Date: Sat, 28 Nov 2026 15:10:36 +0000 (UTC) From: Michael Tremer Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 2.x development tree". The branch, next has been updated via f5c5202809c4bb1ecdbc87740d438c80c4fd2c1d (commit) via 879b3235fb471224f3e3e0a07038ba7e0bb1f27e (commit) via f1a31fdb551e06a83178022bc61e13d51455b485 (commit) from 4fd907b33cb24d831be24dc0ec645f17a74a4907 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit f5c5202809c4bb1ecdbc87740d438c80c4fd2c1d Author: Michael Tremer Date: Sat Nov 28 15:09:09 2026 +0000 build: Do not require umount in the new root After pivot_root the root directory of the process is the new root. Only the working directory still refers to the previous root, so we cannot run the tools of the host any more. If the new root does not have umount, as is the case for the root directory that we build IPFire in, the build failed with "umount: command not found". Only detach the previous root if umount is available. Otherwise it is left in place, but it is not reachable after changing the working directory. Signed-off-by: Michael Tremer commit 879b3235fb471224f3e3e0a07038ba7e0bb1f27e Author: Michael Tremer Date: Sat Nov 28 14:56:18 2026 +0000 core208: Ship the kernel The kernel has been updated to 6.18.65, so it is shipped in the update. The update checks if there is enough space and if an IPFire kernel is running before the old kernel is being removed, and regenerates the initial ramdisks afterwards. The kernel configuration does not need any changes for this release. Signed-off-by: Michael Tremer commit f1a31fdb551e06a83178022bc61e13d51455b485 Author: Michael Tremer Date: Sat Nov 28 14:49:52 2026 +0000 kernel: update to 6.18.65 Signed-off-by: Michael Tremer ----------------------------------------------------------------------- Summary of changes: .../124 => core/208}/filelists/aarch64/linux | 0 .../206 => core/208}/filelists/loongarch64/linux | 0 .../181 => core/208}/filelists/riscv64/linux | 0 .../100 => core/208}/filelists/x86_64/linux | 0 config/rootfiles/core/208/update.sh | 74 ++++++++++++++++++++++ lfs/linux | 4 +- tools/execute.sh | 14 +++- 7 files changed, 87 insertions(+), 5 deletions(-) copy config/rootfiles/{oldcore/124 => core/208}/filelists/aarch64/linux (100%) copy config/rootfiles/{oldcore/206 => core/208}/filelists/loongarch64/linux (100%) copy config/rootfiles/{oldcore/181 => core/208}/filelists/riscv64/linux (100%) copy config/rootfiles/{oldcore/100 => core/208}/filelists/x86_64/linux (100%) Difference in files: diff --git a/config/rootfiles/core/208/filelists/aarch64/linux b/config/rootfiles/core/208/filelists/aarch64/linux new file mode 120000 index 000000000..3a2532bc7 --- /dev/null +++ b/config/rootfiles/core/208/filelists/aarch64/linux @@ -0,0 +1 @@ +../../../../common/aarch64/linux \ No newline at end of file diff --git a/config/rootfiles/core/208/filelists/loongarch64/linux b/config/rootfiles/core/208/filelists/loongarch64/linux new file mode 120000 index 000000000..31b2bcffe --- /dev/null +++ b/config/rootfiles/core/208/filelists/loongarch64/linux @@ -0,0 +1 @@ +../../../../common/loongarch64/linux \ No newline at end of file diff --git a/config/rootfiles/core/208/filelists/riscv64/linux b/config/rootfiles/core/208/filelists/riscv64/linux new file mode 120000 index 000000000..c8e8350ca --- /dev/null +++ b/config/rootfiles/core/208/filelists/riscv64/linux @@ -0,0 +1 @@ +../../../../common/riscv64/linux \ No newline at end of file diff --git a/config/rootfiles/core/208/filelists/x86_64/linux b/config/rootfiles/core/208/filelists/x86_64/linux new file mode 120000 index 000000000..0615b5b9a --- /dev/null +++ b/config/rootfiles/core/208/filelists/x86_64/linux @@ -0,0 +1 @@ +../../../../common/x86_64/linux \ No newline at end of file diff --git a/config/rootfiles/core/208/update.sh b/config/rootfiles/core/208/update.sh index ef93b6f17..eba953d66 100644 --- a/config/rootfiles/core/208/update.sh +++ b/config/rootfiles/core/208/update.sh @@ -26,13 +26,65 @@ core=208 +exit_with_error() { + # Set last succesfull installed core. + echo $(($core-1)) > /opt/pakfire/db/core/mine + # force fsck at next boot, this may fix free space on xfs + touch /forcefsck + # don't start pakfire again at error + killall -KILL pak_update + /usr/bin/logger -p syslog.emerg -t ipfire \ + "core-update-${core}: $1" + exit $2 +} + # Remove old core updates from pakfire cache to save space... for (( i=1; i<=$core; i++ )); do rm -f /var/cache/pakfire/core-upgrade-*-$i.ipfire done +KVER="@KERNEL_RELEASE@" + +# Backup uEnv.txt if exist +if [ -e /boot/uEnv.txt ]; then + cp -vf /boot/uEnv.txt /boot/uEnv.txt.org +fi + +# Do some sanity checks prior to the kernel update +case $(uname -r) in + *-ipfire*) + # Ok. + ;; + *) + exit_with_error "ERROR cannot update. No IPFire Kernel." 1 + ;; +esac + +# Check diskspace on root and size of boot +ROOTSPACE=$( df / -Pk | sed "s| * | |g" | cut -d" " -f4 | tail -n 1 ) +if [ $ROOTSPACE -lt 200000 ]; then + exit_with_error "ERROR cannot update because not enough free space on root." 2 +fi +BOOTSIZE=$( df /boot -Pk | sed "s| * | |g" | cut -d" " -f2 | tail -n 1 ) +if [ $BOOTSIZE -lt 100000 ]; then + exit_with_error "ERROR cannot update. BOOT partition is to small." 3 +fi + # Stop services +# Remove the old kernel +rm -rvf \ + /boot/System.map-* \ + /boot/config-* \ + /boot/ipfirerd-* \ + /boot/initramfs-* \ + /boot/vmlinuz-* \ + /boot/uImage-* \ + /boot/zImage-* \ + /boot/uInit-* \ + /boot/dtb-* \ + /lib/modules + # Remove files # Remove files that are not used any more by the web user interface rm -rvf \ @@ -317,6 +369,28 @@ sudo -u nobody /srv/web/ipfire/cgi-bin/dhcp.cgi /dev/null # Restart Apache /etc/init.d/apache restart +# Build initial ramdisks +dracut --regenerate-all --force +case "$(uname -m)" in + aarch64) + mkimage -A arm64 -T ramdisk -C lzma -d /boot/initramfs-${KVER}.img /boot/uInit-${KVER} + # dont remove initramfs because grub need this to boot. + ;; +esac + +# Update kernel version in uEnv.txt +if [ -e /boot/uEnv.txt ]; then + sed -i -e "s/KVER=.*/KVER=${KVER}/g" /boot/uEnv.txt +fi + +# Call user update script (needed for some ARM boards) +if [ -e /boot/pakfire-kernel-update ]; then + /boot/pakfire-kernel-update ${KVER} +fi + +# This update needs a reboot... +touch /var/run/need_reboot + # Finish /etc/init.d/fireinfo start sendprofile diff --git a/lfs/linux b/lfs/linux index 0dd22944e..819708281 100644 --- a/lfs/linux +++ b/lfs/linux @@ -24,7 +24,7 @@ include Config -VER = 6.18.64 +VER = 6.18.65 THISAPP = linux-$(VER) DL_FILE = linux-$(VER).tar.xz @@ -75,7 +75,7 @@ objects = \ $(DL_FILE) = $(URL_IPFIRE)/$(DL_FILE) -$(DL_FILE)_BLAKE2 = 2c9130c8a2f57384556517159efbf843771298943d52abfac7cd3bf5524b10213f0972c9cdc5cfc11028300c06e7afc4ba1a84495119316d286e4c5e0f87e652 +$(DL_FILE)_BLAKE2 = 3a643179c5f5e59582fe43b4d8c4d86db470b7bd7324fe4ae2b3a34037b4002806bc05ab263fd850ad6f22e3f3f33af7e755af0d144b258eae8131ccb4441f05 install : $(TARGET) diff --git a/tools/execute.sh b/tools/execute.sh index dc9104bad..aaa9865f0 100755 --- a/tools/execute.sh +++ b/tools/execute.sh @@ -91,13 +91,21 @@ protect_proc() { # Makes the given directory the new root directory and removes the previous # root directory from our mount namespace, so that there is no way back. # -# The previous root is stacked on top of the new root, which allows us to -# unmount it with the tools of the host, even if the new root does not have any. +# The previous root is stacked on top of the new root. Only the current working +# directory still refers to it, because the root directory of this process is +# the new root. That means that we cannot run the tools of the host any more +# and umount is only available if the new root has it. If it has not, we cannot +# detach the previous root, but it becomes unreachable as soon as we leave the +# working directory, which is what matters here. # The directory must be a mountpoint. change_root() { cd "${1}" pivot_root . . - umount --lazy . + + if command -v umount &>/dev/null; then + umount --lazy . + fi + cd / } hooks/post-receive -- IPFire 2.x development tree