17
0

1 Commits

2 changed files with 11 additions and 1 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Sep 19 09:20:04 UTC 2025 - Ignaz Forster <iforster@suse.com>
- Add additional check in %post to prevent generating the btrfs
/etc subvolume during a KIWI run
[bsc#1250133] [gh#openSUSE/read-only-root-fs#27]
-------------------------------------------------------------------
Tue Jul 08 12:47:38 UTC 2025 - Fabian Vogt <fvogt@suse.com>

View File

@@ -68,7 +68,10 @@ have a writable /root or /home, additional fstab entries can be added.
cp -a etc usr %{buildroot}
%post
if [ "$1" = 1 -a "`findmnt -n -o FSTYPE -l /`" = "btrfs" ] ; then
# Create /etc subvolume for fresh installations
# Exception: The host's file system for KIWI builds may also be btrfs, but for KIWI
# (indicator: /.kconfig is present) the script will be called later in disk.sh.
if [ "$1" = 1 ] && [ "`findmnt -n -o FSTYPE -l /`" = "btrfs" ] && [ ! -e /.kconfig ]; then
%{_libexecdir}/setup-etc-subvol
fi
if [ ! -e /boot/writable -a "`findmnt -n -o FSTYPE -l /`" = "btrfs" ]; then