* [git.ipfire.org] IPFire 2.x development tree branch, next, updated. f5c5202809c4bb1ecdbc87740d438c80c4fd2c1d
@ 2026-11-28 15:10 Michael Tremer
0 siblings, 0 replies; only message in thread
From: Michael Tremer @ 2026-11-28 15:10 UTC (permalink / raw)
To: ipfire-scm
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 <michael.tremer@ipfire.org>
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 <michael.tremer@ipfire.org>
commit 879b3235fb471224f3e3e0a07038ba7e0bb1f27e
Author: Michael Tremer <michael.tremer@ipfire.org>
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 <michael.tremer@ipfire.org>
commit f1a31fdb551e06a83178022bc61e13d51455b485
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Sat Nov 28 14:49:52 2026 +0000
kernel: update to 6.18.65
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-----------------------------------------------------------------------
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 >/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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-28 15:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-28 15:10 [git.ipfire.org] IPFire 2.x development tree branch, next, updated. f5c5202809c4bb1ecdbc87740d438c80c4fd2c1d Michael Tremer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox