[4/5] update.sh: Don't allow update if reiserfs used

Message ID 20260115140012.3713633-4-adolf.belka@ipfire.org
State Staged
Commit 8f1014822a721b4dfab994f4298af6bcba09f4c0
Headers
Series [1/5] reiserfsprogs: Removal of package as reiserfs no longer supported by kernel 6.18 |

Commit Message

Adolf Belka 15 Jan 2026, 2 p.m. UTC
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 config/rootfiles/core/200/update.sh | 4 ++++
 1 file changed, 4 insertions(+)
  

Patch

diff --git a/config/rootfiles/core/200/update.sh b/config/rootfiles/core/200/update.sh
index 40e07cc8d..b9a1e14f0 100644
--- a/config/rootfiles/core/200/update.sh
+++ b/config/rootfiles/core/200/update.sh
@@ -71,6 +71,10 @@  if [ $BOOTSIZE -lt 100000 ]; then
     exit_with_error "ERROR cannot update. BOOT partition is to small." 3
 fi
 
+# Check if reiser filesystem is used
+if [ `/bin/grep -c "reiserfs" /proc/self/mounts` > 0 ]; then
+	exit_with_error "ERROR cannot update because reiserfs no longer supported by kernel." 4
+
 # Remove the old kernel
 rm -rvf \
 	/boot/System.map-* \