overlay: add support for locale directory

inconveniently locales are in /usr/lib/locale rather than var.
selectively overlay it with a subvolume
This commit is contained in:
Harald Sitter
2024-03-17 23:43:50 +01:00
parent 264a5bee6a
commit 7fc5fa11d5
3 changed files with 7 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ cd "$tmpdir"
rm -rfv ./*
btrfs send "/system/@kdeos_$IMAGE_VERSION" | btrfs receive .
btrfs subvolume create @home
btrfs subvolume create @locale
btrfs subvolume create @snap
btrfs subvolume create @var-overlay
btrfs subvolume create @etc-overlay

View File

@@ -27,6 +27,9 @@ mount -v \
mount -v \
-o rw,subvol=@home \
"$rootdisk" "${sysroot}/home"
mount -v \
-o rw,subvol=@locale \
"$rootdisk" "${sysroot}/usr/lib/locale"
mount -v \
-o rw,subvol=@snap \
"$rootdisk" "${sysroot}/snap"

View File

@@ -13,6 +13,9 @@ SplitName=root
Subvolumes=/@home
MakeDirectories=/@home
Subvolumes=/@locale
MakeDirectories=/@locale
Subvolumes=/@snap
MakeDirectories=/@snap