Compare commits
1 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
|
|
e301a12446 |
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user